Hi,
We have problem with showing page numbers in footer for some standard MS Word footers where converted from Word to HTML and then back to Word.
Please find simple java program in attachment.
Hi Milan,
Hi,
I am attaching simple Java program which simulates issues. Also, I am attaching expected behavior for both scenarios. Input html is included in application source file.
File first.docx is document with issue and file first_expected_behavior.docx is document with expected behavior. Same thing is for file second.docx
I am using Aspose.Words for Java 17.3.0
Hi Milan,
Document doc = new Document(“input.docx”);<o:p></o:p>
HtmlFixedSaveOptions opts = new HtmlFixedSaveOptions();
// Specify options as required
doc.save("AW_175.html", opts);
Hi,
You can see issues in source code than I attached in previous post. It is obvious that page numbers and not updated correctly, it is always number 1 for some MS Word standard footer options.
Issue here is with page numbers in footer section. This is nothing to do with concept of pages in simple HTML. I am talking about style attribute with ‘<span style=“color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(255, 255, 255); font-family: “Courier New”; font-size: 9pt;”>-aw-headerfooter-type:footer-primary’.
Can you check source code that I attached and examples which are not working properly?
File third.docx is example which works as expected.
Regards<span style=“color: rgb(0, 128, 0); font-weight: bold; background-color: rgb(255, 255, 255); font-family: “Courier New”; font-size: 9pt;”>
Hi Milan,
The issues you have found earlier (filed as WORDSJAVA-1589,WORDSJAVA-1590) have been fixed in this Aspose.Words for .NET 18.7 update and this Aspose.Words for Java 18.7 update.