Page 1 of 1
How to print Legal size page usinf FOP
Posted: Wed Dec 28, 2005 9:10 pm
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,.
Posted: Thu Dec 29, 2005 10:57 am
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,
Posted: Wed Feb 01, 2006 1:21 am
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.