Hello Aspose team,
We are having issues with a customer document where the Table of Content’s page numbers do not match the actual page numbers of the chapters.
This issue persists even after we call the UpdateFields() method on the document.
I have tried other routes as well, such as explicitly calling the UpdatePageNumbers() method on the Table of Content field. Unfortunately, none of them helped.
For your inspection, I have attached a zip folder containing the problem document and a test console app which demonstrates the UpdateFields() method not updating the table of contents page numbers.
Check the page number of the “General Notes” chapter, it is indicated to be on page 17 in the ToC, but its actually in page 13. The console app calls the UpdateFields() method on the document, but this does nothing.
Please let me know if any more information is needed from our end, I look forward to your reply.
Best regards.
https://1drv.ms/u/s!BAIrQzs5KoiRzyH1qqb2SqJtc4a5?e=wZL1semPVkyr7p52VfghXw&at=9