Re: Page Size

2005-03-02 Thread Vincent Hennebert
I don't think it's a Fop-related problem.
First: as Glen asked, do you want ps or pdf output (or both)?
If you just want to print your document then ps is fine. Fop can directly 
generate ps (and I believe it does it as well as pdf):
	fop file.fo -ps file.ps
Then you can use psbook to re-order the pages.

I can't reproduce your problem with page sizes. With my files acroread prints a 
page size of 209.9x297.0 mm, which is quite fine. Are you sure there aren't 
errors in your fo file? To see page size with acroread: File -> Document 
Properties -> summary
Moreover I don't think pdf2ps is doing a wonderful work here: the generated ps 
looks rather ugly on the screen (yet it may print correctly), and page size is 
not respected (use of a bbox instead of a4).
I'd advise you to use Acrobat Reader to print in a file: you obtain a far better 
ps file. But try before using Fop's ps renderer.

Hope this helps,
Vincent
Uwe Kubosch a écrit :
Hi!
We are using FOP to produce a book and most issues have been
successfully dealt with.
Currently we are struggling with page size.  We set page size to be 29.7
by 21 cm in the simple-page-master tag.
We need to be able to reorder and resize the pages for folded printing.
That means putting pages 4+1 on the first sheet and pages 2+3 on the
second sheet for a 4 page document.  The only way we have found to do
this is by converting the pdf document to postscript and using psbook
for the reordering and psnup to put two pages on one sheet.
When printing the resulting document, the page size is a bit off and
visual inspection using ggv show the page sizes to be too small.  The
pdf produced by FOP is 27.9 by 20.3 cm.
After using pdf2ps the page size is 26.9 by 20.3.
Is this a known problem?
Is there a way to display the page size of a pdf or postscript document
exactly?
Any help is greatly appreciated.
donV
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Page Size

2005-03-02 Thread Glen Mazza
I can't answer your question but to help others who
may be able to, could you clarify whether you want PS
or PDF output?  (Or both?)

Thanks,
Glen


--- Uwe Kubosch <[EMAIL PROTECTED]> wrote:

> Hi!
> 
> We are using FOP to produce a book and most issues
> have been
> successfully dealt with.
> 
> Currently we are struggling with page size.  We set
> page size to be 29.7
> by 21 cm in the simple-page-master tag.
> 
> We need to be able to reorder and resize the pages
> for folded printing.
> That means putting pages 4+1 on the first sheet and
> pages 2+3 on the
> second sheet for a 4 page document.  The only way we
> have found to do
> this is by converting the pdf document to postscript
> and using psbook
> for the reordering and psnup to put two pages on one
> sheet.
> 
> When printing the resulting document, the page size
> is a bit off and
> visual inspection using ggv show the page sizes to
> be too small.  The
> pdf produced by FOP is 27.9 by 20.3 cm.
> 
> After using pdf2ps the page size is 26.9 by 20.3.
> 
> Is this a known problem?
> 
> Is there a way to display the page size of a pdf or
> postscript document
> exactly?
> 
> Any help is greatly appreciated.
> 
> 
> donV
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Page Size

2005-03-02 Thread Uwe Kubosch
Hi!

We are using FOP to produce a book and most issues have been
successfully dealt with.

Currently we are struggling with page size.  We set page size to be 29.7
by 21 cm in the simple-page-master tag.

We need to be able to reorder and resize the pages for folded printing.
That means putting pages 4+1 on the first sheet and pages 2+3 on the
second sheet for a 4 page document.  The only way we have found to do
this is by converting the pdf document to postscript and using psbook
for the reordering and psnup to put two pages on one sheet.

When printing the resulting document, the page size is a bit off and
visual inspection using ggv show the page sizes to be too small.  The
pdf produced by FOP is 27.9 by 20.3 cm.

After using pdf2ps the page size is 26.9 by 20.3.

Is this a known problem?

Is there a way to display the page size of a pdf or postscript document
exactly?

Any help is greatly appreciated.


donV


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Setting page size

2004-02-17 Thread Abhijit Junnare
I am currently setting page-size in the XSL that is
used to generate PDF from source XML. This works fine
as I am able to vary the page size depending on
attribute son my source XML.
However, what I am wondering is that is there any way
to force that a PDF with letter size PDF can be
printed ONLY on a letter size paper and no other size
papers when actually printing the PDF? 
I know this is little off track from FOP but just
wondering if anyone has done this before.
Thanks for your help
Regards,
Abhi

__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Change page size

2004-02-02 Thread Andreas L. Delmelle
> -Original Message-
> From: Forest, Sebastien [mailto:[EMAIL PROTECTED]

> Hi

Hi

Some friendly advice to start:
Would you be so kind the next time, to post in plain-text? Not a problem for
me specifically, but some would find it a reason to ignore your question if
you don't... Just imagine for a moment what all that HTML looks like in
plain text view.

Now as to your question:
> When I encounter the tag I create a new page-sequence but FOP give me an
error
> because the page-sequence must be in the fo:root and not in a fo:block.
> I'am able to change page-sequence, but only if the tag I'm looking for is
at
> the root. If this tag ("graphic" in my example) is a child of another tag
I
> didn't find a way to control it.

I think you're going to need three XSL templates for this:
(more of a Mulberry-question, come to think of it)

- one for the plain  elements (sans graphiques ;) )
- one for the  elements that are children of the root
- one to handle  elements with  ancestors

Example stylesheet:


http://www.w3.org/1999/XSL/Transform";>



  

  



  
  

  

  

  
  

  

  
  



  

  



  

  

  


  
  

  





Modify this to use real fo's, and use it to transform your example XML. Only
case not handled by the above template is: a  that would be following
'graphic 4' in your example, but would still be a child of the 'para 5'
node... Just to give you an idea.


Cheers,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Change page size

2004-02-02 Thread J.Pietschmann
Forest, Sebastien wrote:
When I encounter the tag I create a new page-sequence but FOP give me an
error because the page-sequence must be in the fo:root and not in a
fo:block. I'am able to change page-sequence, but only if the tag I'm looking
for is at the root. If this tag ("graphic" in my example) is a child of
another tag I didn't find a way to control it.
You need to look into grouping techniques in order to
sort of "pull the special tag to the top level". It's
somewhat hairrising though.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Change page size

2004-02-02 Thread Forest, Sebastien
Title: RE: Change page size





Forest, Sebastien wrote:
> Hi
> I need to produce a pdf with fop 0.20.5rc3a with a combinaison of two 
> differents page size. The document is in 8.5 X 11 inch but when I 
> encounter a special tag in the xml file I need to switch to 11 X 17 
> inch. Is there a way to switch page-master depending on the tag in the xml.


Create a new page-sequence when you encounter the tag thats orders a 
change in page dimensions. Of course, this will cause text after the tag 
to be moved to a new page.


When I encounter the tag I create a new page-sequence but FOP give me an error because the page-sequence must be in the fo:root and not in a fo:block. I'am able to change page-sequence, but only if the tag I'm looking for is at the root. If this tag ("graphic" in my example) is a child of another tag I didn't find a way to control it.

Exemple:


  para 1
    para 1.1
  
  para 2
  para 3
  graphic 1
  para 4
  graphic 2
  graphic 3
  para 5
    para 5.1
  graphic 4
    
  



Can anyone help me?





Re: Change page size

2004-01-30 Thread Chris Bowditch
Forest, Sebastien wrote:
Hi
I need to produce a pdf with fop 0.20.5rc3a with a combinaison of two 
differents page size. The document is in 8.5 X 11 inch but when I 
encounter a special tag in the xml file I need to switch to 11 X 17 
inch. Is there a way to switch page-master depending on the tag in the xml.
Create a new page-sequence when you encounter the tag thats orders a 
change in page dimensions. Of course, this will cause text after the tag 
to be moved to a new page.

Chris

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Change page size

2004-01-30 Thread George Yi
Title: Change page size 









You can use 2 page sequences to achieve
this, talk a look at the examples coming with fop: franklin_2pageseqs.fo. To do
this, you have to know how many material you want to dump into each page.

 

George

 

-Original Message-
From: Forest, Sebastien [mailto:[EMAIL PROTECTED]

Sent: Friday, January 30, 2004
8:39 AM
To: '[EMAIL PROTECTED]'
Subject: Change page size

 

Hi 
I need to produce a pdf with fop
0.20.5rc3a with a combinaison of two differents page size. The document is in
8.5 X 11 inch but when I encounter a special tag in the xml file I need to
switch to 11 X 17 inch. Is there a way to switch page-master depending on the
tag in the xml.

Thanks 

Sébastien
Forest 
Spécialiste, Applications logicielles / Software Application
Specialist 
Publications techniques / Technical Publications 
L-3 MAS (Canada) 
J  (450)
476-4850 
e-mail:  [EMAIL PROTECTED]

















Change page size

2004-01-30 Thread Forest, Sebastien
Title: Change page size 





Hi
I need to produce a pdf with fop 0.20.5rc3a with a combinaison of two differents page size. The document is in 8.5 X 11 inch but when I encounter a special tag in the xml file I need to switch to 11 X 17 inch. Is there a way to switch page-master depending on the tag in the xml.

Thanks


Sébastien Forest
Spécialiste, Applications logicielles / Software Application Specialist
Publications techniques / Technical Publications
L-3 MAS (Canada)
J  (450) 476-4850
e-mail:  [EMAIL PROTECTED]