Generated PDF has different document and page size.

Here should go questions about transforming XML with XSLT and FOP.
jwboer
Posts: 1
Joined: Sat Feb 14, 2009 2:14 am

Generated PDF has different document and page size.

Post by jwboer »

I want to transform a DOCBOOK xml file to a PDF which has a size of 6'' x 9''. When I do this, I do get a document that has a document size of 6'' by 9'', but which has a different page size, which happens to be size at which the document will be printed. So my PDF has the wrong size.

What can i do to make the page size 6'' by 9'''?

I have Oxygen 8.2.

I did this:
- change the builtin tranformation parameters for Docbook PDF to the following:
Image

- do the transformation. Now i get this in Adobe PDF reader (and also in Foxit):
Image

The "document" has the appropriate format (in mm), but the "paper" does not. I don't get the difference.

Can anyone shed some light on this? What can i do to make my paper-size the right size?

------
Jan Willem Boer
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Generated PDF has different document and page size.

Post by sorin_ristache »

Hello,

You have the DocBook parameter paper.type set to US Letter which has other sizes. You need the C4 paper type which is 9in x 6in. That means you have to set the paper.type parameter to value C4.


Regards,
Sorin
Post Reply