1 Nov 2011 11:55
Re: DocBook to PDF conversion with total page count
Jirka Kosek <jirka <at> kosek.cz>
2011-11-01 10:55:47 GMT
2011-11-01 10:55:47 GMT
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: jirka <at> kosek.cz 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 ------------------------------------------------------------------
-- XMLmind XML Editor Support List xmleditor-support <at> xmlmind.com(Continue reading)
RSS Feed