You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Eric Smith <Er...@fruitcom.com> on 2002/05/08 12:42:49 UTC
first page must have no page number
I tried implementing this with two page-master's but failed-
could someone please pass me the code to implement this.
thanx
--
Eric Smith
Re: first page must have no page number
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Eric Smith wrote:
> I tried implementing this with two page-master's but failed-
> could someone please pass me the code to implement this.
<?xml version="1.0" encoding="iso-8859-1"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="regular"
page-height="29.7cm" page-width="21cm"
margin-top="1cm" margin-bottom="2cm"
margin-left="2.5cm" margin-right="2.5cm">
<fo:region-body margin-bottom="1.5cm"/>
<fo:region-after extent="1.5cm"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="blank-footer"
page-height="29.7cm" page-width="21cm"
margin-top="1cm" margin-bottom="2cm"
margin-left="2.5cm" margin-right="2.5cm">
<fo:region-body margin-bottom="1.5cm"/>
</fo:simple-page-master>
<fo:page-sequence-master master-name="pages">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference
page-position="first" master-reference="blank-footer" />
<fo:conditional-page-master-reference
page-position="rest" master-reference="regular" />
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="pages">
<fo:static-content flow-name="xsl-region-after">
<fo:block><fo:page-number/></fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block>Stuff</fo:block>
<fo:block break-before="page">Stuff</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
J.Pietschmann