On 27.10.2011 17:10, Hussein Shafie wrote:
> On 10/27/2011 02:48 PM, Gilles Gosuin wrote:
>> Unfortunately, this method does not work when you have multiple flows.
> 
> I think I understand: you need the *absolute* total page count of your 
> document.

Usual approach to this problem is to run whole XSLT transformation/FO
processing twice. During second pass you can invoke iText
(http://itextpdf.com/) library from XSLT and get total number of pages
from the PDF file generated during the first pass.

                                Jirka

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: [email protected]      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------

Attachment: signature.asc
Description: OpenPGP digital signature

 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to