Distorted table of content

Hi Team,

I am using Aspose word 18.7. When we are processing a word document with table of content it is not coming how it is there in source word document. Word document has updated table of content.

Following is the code used:
Document doc = new Document(filePath);
doc.save(outpufFile, SaveFormat.PDF);

Also attached the source word and generated PDF file.tocIssue.zip (105.9 KB)


After an initial test with the licensed latest version of Aspose.Words for Java i.e. 19.2, we were unable to reproduce this issue on our end (please see awjava-19.2.pdf (54.2 KB)). We would suggest you please upgrade to the latest version of Aspose.Words for Java. Hope, this helps.