On 01/24/2012 03:43 PM, Michael Kainzbauer wrote: > > is there a possibility to get the page count of the latest converted > document? > > Something like Apache FOP provides: > > fopInputHandler.renderTo(foUserAgent, > translateOutputFormat(outputFormat), renderedDocument); > int pageCount = fopInputHandler.getPageCount(); > >
No, only MS-Word or OpenOffice/LibreOffice, that is, the word processor used to open the output of XMLmind XSL-FO Processor, knows this information. Note that the fact we do not provide this API does not prevent you from inserting the total page count in the file generated by XMLmind XSL-FO Processor. This is done exactly like with any other XSL-FO processor: * Generate a fo:block such as follows at the end of the file <fo:block id="__EOF"/> * The page count is then expressed as follows: <fo:page-number-citation ref-id="__EOF"/> -- XMLmind FO Converter Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xfc-support

