[xep-support] Question: get the number of page of the PDF file rendered by XEP
Edward Q. Bridges
e.bridges at argo-tec.de
Wed Feb 6 07:58:53 PST 2002
at the bottom of put an empty block at the end of your fo:flow, like
this:
<fo:flow flow-name="xsl-region-body">
<xsl:apply-templates select="*"/>
<fo:block id="total-page-count"/>
</fo:flow>
and then where you want to reference the number of pages use this:
<fo:page-number-citation ref-id="total-page-count"/>
this is how i do a footer with a page count like: "Page x of y"
where the value of y is generated by the page-number-citation.
btw, you can use any unique string, it does not have to be "total-page-
count"
HTH
--e--
On Wed, 06 Feb 2002 16:15:48 +0100, Daniel Cheng wrote:
>Hello,
>
>We are currently using the version 2.7 of XEP in a Java application to
render XML files to PDF files at WIPO.
>
>Is there any possibility to get the number of pages of the result files,
rather than writing our own event Logger to count the pages ?
>
>Thanks for your help.
>Daniel CHENG
>
>
>
>-------------------
>By using the Service, you expressly agree to these Terms of Service
http://www.renderx.com/tos.html
-------------------
By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
More information about the Xep-support
mailing list