Hi wali,
>I creat a PDF document which have reports for different customers.  One
>document can contain many reports. Now I want to mark the pages for
reports
>individually. i.e.
...
>Every new report starts at new page. and every report can consist of
>different number of pages.

Create a page sequence for each report. If you are creating the
FO via XSLT, and if you have the reports in individual XML
elements (here called "report"), you can use something like
  <xsl:template match="report">
   <fo:page-sequence master-name="report" initial-page-number="1" >
     <fo:static-content flow-name="xsl-region-before">
       <xsl:text>Report </xsl:text>
       <xsl:value-of select="title">
     </fo:static-content>
     <fo:static-content flow-name="xsl-region-after">
       <fo:block><fo:leader leader-pattern="rule" leader-length
="max"/></fo:block>
       <fo:block text-align="end"><xsl:text>Page
</xsl:text><fo:page-number/></fo:block>
     </fo:static-content>
     <fo:flow flow-name="xsl-region-body">
       <xsl:apply-templates/>
     </fo:flow>
    </fo:page-sequence>
  </xsl:template>

Tailor this to your needs. Of course you'll have to define
a page master "report" (you may have different page masters
for the title page, the TOC, appendices etc.)

HTH

Joerg Pietschmann




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

Reply via email to