Re: Page count & first-rest-last

2002-07-25 Thread J.Pietschmann

[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:
   
  
  
  
   

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]




Page count & first-rest-last

2002-07-25 Thread miguel_sas

Hi fop-developers-users,

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.

Any work-arround?

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

Thanks in advance.

Miquel Sas


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