[EMAIL PROTECTED] wrote:
> I'm new to FOP and I've started with a document that needs different
> footers for the first, rest and last page. Unfortunatly, as reported in the
> bug database, fop do not apply the page-master for the last page, only
> first and rest work properly.

It depends on what is different on the last page from
the rest.
Another possibility is a two pass approach:
Define the following page master:
   <fo:page-sequence-master master-name="master">
      <fo:single-page-master-reference master-reference="title"/>
      <fo:repeatable-page-master-reference master-reference="other"
           maximum-repeats="1000"/>
      <fo:single-page-master-reference master-reference="last"/>
   </fo:page-sequence-master master-name="master">

Get the page count and insert pageCount-2 for the 1000.
If you generate the FO with XSLT You can automate this with
a small Java wrapper, take
  http://marc.theaimsgroup.com/?l=fop-user&m=102002702026609&w=2
and replace the "page-count" XSLT parameter with an appropriately
used "maximum-repeats" parameter.

> Second, I'd like to know the total number of pages, to print 'page n of N'
> Have you any trick for this?

FAQ. See
  http://marc.theaimsgroup.com/?l=fop-user&m=102052610605212&w=2

J.Pietschmann


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

Reply via email to