Yes, I know about that, but I have to write universal mechanism, which will calculate page count of every document, even without those fo tags. Besides if I only need to count pages I don't have to render document to PDF or PCL - I wonder if there exists any moment in FOP rendering process when I can get page count. Maybe I should write my own simple Renderer?

Kuba




Kuba Kr�likowski wrote:

Hi

I'm using PCL renderer in FOP. I have to count document pages. I know that I can render my document and get page count with this way. But I'm not sure that there isn't any little faster way, for example without writing PCL commands to PCL stream. Do you know where exactly there is a moment in rendering process when page count is calculated? How can I calculate it in the fastest way?


Have you tried using

<fo:page-number-citation ref-id="end"/>

of course, dont forget to put id="end" on your last FO in the flow, e.g.

<fo:block id="end">
This is the last block
</fo:block>

Chris



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









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



Reply via email to