How to print Legal size page usinf FOP

Here should go questions about transforming XML with XSLT and FOP.
gvivekkumar
Posts: 2
Joined: Wed Dec 28, 2005 9:07 pm

How to print Legal size page usinf FOP

Post by gvivekkumar » 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,.

Thanks
Vivek

Radu
Posts: 6181
Joined: Fri Jul 09, 2004 5:18 pm

Post by Radu » 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.

gvivekkumar
Posts: 2
Joined: Wed Dec 28, 2005 9:07 pm

Post by gvivekkumar » 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.

Thanks
Vivek

Post Reply