Wrong page number in the table of contents (TOC)

my team members experience a problem we believe is a bug - we only use Aspose.Words to update a word document contents(fields), which generated through apache POI with wrong page referrence number on contents(fields), and we end up with wrong page number in the table of contents (TOC) that is solved only by manually update the TOC.

We use the library in Java core container(aspose-words-19.5-jdk17.jar), and this bug also reproduce on our windows development PCs.

I have implemented IWarningCallback interface, no fonts missing notification.

Document doc = new Document( "D:\\33test432020年年度报告.docx");
doc.updatePageLayout();
doc.updateFields();
doc.save( "D:\\33test432020年年度报告.docx");

33test432020年年度报告.docx (213.4 KB)
图片.png (68.6 KB)
In fact their postion on 68.

I attached a docx file with a small program that reproduces the bug.
In order to run it you should add the license file, run it in CLI and check the generated document.
The zip contains the current word document with wrong page numbers.

Looking forward for support,
Thanks,
Simon

@simoncheng2010
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-25607

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

The issues you have found earlier (filed as WORDSNET-25607) have been fixed in this Aspose.Words for Java 24.3 update.