How to print Legal size page usinf FOP

Here should go questions about transforming XML with XSLT and FOP.
Posts: 2

How to print Legal size page usinf FOP

Wed Dec 28, 2005 9:10 pm

Hi all,
Currently I am using FOP to generate my PDf but by default page print is A4.

I don't know how to direct printer to print in legal size. Please help me,.

Posts: 5994

Thu Dec 29, 2005 10:57 am

Hi Vivek

Each page type has a specified width and height.
For example Legal has 216mm width and 356mm height
Knowing this, in order to use these sizes your fo:simple-page-master declaration should contain something like this:

Code: Select all

<fo:simple-page-master page-width="216mm" page-height="356mm"
 margin-top="0.5in" margin-bottom="0.5in" margin-left="1in - 0pt" margin-right="1in">

Hope this helps,
Regards, Radu.
Posts: 2

Wed Feb 01, 2006 1:21 am

Hi Radu,
By default it goes to A4 size paper. I have to change manually printer setting then it prints in legal format. I want when I print my form by deult it has to go to print legal seize.

Any feedback will be appreciable.


Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 2 guests