Ingo Peter wrote:
In the reference I find no reference for print the absolute pagecount on
every page:
Page: <page-number> of <absolute-page>

Is there any solution for this problem...?

It's an old hat, the list archives as well as the FO part of the XSL FAQ have solutions.

Put an id on some block element which will end up on
the last page, for example an empty block, and refer
to it. Code snippet:
 <fo:page-sequence master-reference="...">
   <fo:static-content>
     <fo:block text-align="end">
       <fo:page-number/> of <fo:page-number-citation ref-id="last"/>
     </fo:block>
   </fo:static-content>
   <fo:flow>
     ...
     <fo:block id="last"/>
   </fo:flow>
 </fo:page-sequence>

Be aware of some pitfalls: you'll get a page number, not
a page count, so it won't work if you use multiple page
sequences with discountinuous numbering. And worst of all:
you are generating a forward reference, forcing FOP to
hold all pages in memory.

J.Pietschmann




Reply via email to