Using xsl-fo to generate PDFs, and you want to display the **pagenumbers **like ‘page 3 of 10’? It isn’t too hard. Just add this to the footer of your pages:

Page fo:page-number of <fo:page-number-citation id="last-page"></fo:page-number-citation></fo:page-number>

Then, make sure you have the following at the end of your document (so, on the last page):

<fo:block id="last-page"></fo:block>

 

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.