|
FOP trunk I’m confused by the page margins I am
getting with the xslt below. I would like to get 1cm margins on all sides with
the footer taking 5mm and the body above that by 5mm. What I am getting when I render to a pdf is 1cm
top, approx 1.5cm right and left, and about 2.5cm bottom. The printer has a
small margin, but it is an ink-jet, so it is minimal. Can someone tell me where I am going wrong? Thanks, Rick <xsl:template match="salesdocument"> <fo:root font-family="sans-serif" font-size="8pt" font-weight="normal"> <fo:layout-master-set> <fo:simple-page-master master-name="main" page-height="11in" page-width="8.5in" margin="1cm 1cm 1cm 1cm"> <fo:region-body margin-bottom="1cm" /> <fo:region-after extent=".5cm" region-name="footer"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="main"> <xsl:call-template name="footer"/> <fo:flow flow-name="xsl-region-body" font-family="sans-serif" font-size="8pt" font-weight="normal" > <xsl:apply-templates
/> <!-- last thing in document so the total pages can be calculated
for the footer "page x of y" --> <fo:block id="endofdoc" margin="0cm" height="0cm"/> </fo:flow> </fo:page-sequence> </fo:root> </xsl:template> |
- margins Rick Roen
- Re: margins Andreas L Delmelle
- RE: margins Rick Roen
- Margins Andre Groeneveld
- Re: Margins Chris Bowditch
- RE: Margins Andre Groeneveld
- Re: Margins Chris Bowditch
