Re: Number of pages in documents created by XFC
Hussein Shafie <[email protected]> Thu, 21 Mar 2019 16:23:10 +0100
| Newsgroups | gmane.text.xml.xfc.general |
|---|---|
| Message-ID | <[email protected]> |
Marian S. wrote: > > we are using the XFC Java API in our application. Some other renderers, > like Apache FOP, return the number of rendered pages The total page count is expressed in XSL-FO as a fo:page-number-citation = object (https://www.w3.org/TR/xsl11/#fo_page-number-citation). This = XSL-FO object is translated by XFC to a DOCX field. > along with the > output document after rendering an FO document. As far as I can see, XFC > doesn=92t do this. I understand that, considering that XFC=92s output > formats are not strictly page based, you may not necessarily have a > concept of pages in the rendering code, and depending on that it might > or might not be easy for you to support an automatic page count. That's right. > We would still like to ask if there is a chance that such a feature could > be added to the XFC renderer Sorry but there is technically no way for us to implement this feature. (In our knowledge, the only way to do that would be to add an AutoOpen = macro to the files we generate but this poses usability issues.) > =96 or if perhaps it already exists and we > simply haven=92t looked in the right place. > Please refer to this FAQ for more information: --- I use the page-number-citation object to print the number of pages in my = document, but the displayed value is always 0 when I load the document = in MS-Word. How can I get the correct value? --- http://www.xmlmind.com/foconverter/faq.html#fields More generally, this article is well-worth reading to understand the = specificities of XMLmind XSL-FO Converter: --- How to adapt your existing XSLT stylesheet to the specificities of = XMLmind XSL-FO Converter --- http://www.xmlmind.com/foconverter/adapt_xslt/adapt_xslt.html -- XMLmind FO Converter Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xfc-support