Table of contents which are created on word and saved/extracted/converted to pdf are not working

Hi Team
Please find the below scenario,where document is created in “.docx” and table of content (even for normal hyperlinks)are created in word only.If the same file is extracted/converted to “.pdf”.we are facing the issue in getting the action of the hyperlinks.
If we use below aspose API to get the action of each hyperlinks which are created in “.docx” is returning null.For example-
LinkAnnotation annot = (LinkAnnotation) an;
annot.getAction() is returning null for those hyperlinks

Observation1: If we add new hyperlink or modify the existing hyperlink in the same annotation.getAction() is returning valid data.
Please find the sample document
SampleDoc.pdf (45.6 KB)

@NayanaN

To ensure a timely and accurate response, please attach the following resources here for testing:

  • Please share the Aspose product that you are using.
  • Your input document.
  • Please attach the output file that shows the undesired behavior.
  • Please attach the expected output file that shows the desired behavior.
  • Please create a simple Java application ( source code without compilation errors ) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.