Milan G. wrote:

I am generating ODT and DOCX files using your library. Everything seems to be working fine, except for an issue with the DOCX file generation where the page number in the footer is not displaying. Do you know what might be causing this? I have already tried using the fo2docx.bat tool to rule out any errors in my Java code.

I am using the standard <fo:page-number /> tag.

Could you please take a look at this?

In ODT, everything works as expected, and the page numbers also display correctly in the PDF files I generate using Apache FOP.


I can reproduce this issue when I open the generated DOCX file in LibreOffice but it works fine when I open the very same file in Word.

Conclusion: it's a LibreOffice (or whatever word processor other than Word) bug/limitation and not an XMLmind XSL-FO Converter issue.

Note that we cannot guarantee that the DOCX files we generate display correctly in other word processors than Word. Similarly we cannot guarantee that the ODT files we generate display correctly in other word processors than OpenOffice/LibreOffice.





---
PS: *Related* FAQ (just related; does not directly apply to your issue). A must read, if you have other page numbers which are not displayed:
---
I use the fo: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?
---
https://www.xmlmind.com/foconverter/faq.html#fields

--
XMLmind FO Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xfc-support

Reply via email to