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’t do this. I understand that, considering that XFC’s 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.)
– or if perhaps it already exists and we
simply haven’t 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