Table of Contents Hyperlinks are Lost after DOCX>HTML>DOCX Conversion using Java

Hi,

Greetings.

We use Aspose.words Java to convert docx file to html and html to docx.

The docx file have table of contents.
The docx file is converted to html, then after editing it is again converted to docx.
While converting the html file to docx the table of Contents is not maintained, that is in the converted docx file, when the table of contents is clicked it is always navigating to the top of the file not to the appropriate place.

Please suggest ways we can mitigate this and let us know your valuable suggestions to resolve this issue

Please check the original docx file attached.
tableOfContents.zip (88.2 KB)

@EdwinPearson

We have tested the scenario using the latest version of Aspose.Words for Java 21.3 and have not found the shared issue. So, please use Aspose.Words for Java 21.3. We have attached the output Word and HTML documents with this post for your kind reference.
21.3.zip (58.6 KB)