From: "Manjush G. Menon" <[EMAIL PROTECTED]>

is there any way to include header/footer line to each PDF page that
gets generated using FOP?

The Page body will vary, causing pages to increase and I need to
put the same header/footer line in all pages. Is there any possbile
way to do this?


This is fairly easy to achieve. Modify all your page-masters so they have a before and after region, e.g.


<fo:simple-page-master name="example" page-width="210mm" page-height="297mm" margin-left="5mm" margin-top="5mm" margin-right="5mm" margin-bottom="5mm">
<fo:region-body margin-top="20mm" margin-bottom="20mm/>
<fo:region-before extent="20mm"/>
<fo:region-after extent="20mm/>
</fo:simple-page-master>


Then in you page-sequence define two static regions with the contents of header and footer in each, e.g.

<fo:page-sequence master-reference="example">
<fo:static-content flow-name="xsl-region-before">
<fo:block>The header</fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-after">
<fo:block>The footer</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<!-- your body content as usual -->
</fo:flow>
</fo:page-sequence>

Chris

_________________________________________________________________
Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to