Table of contents links not working when converting from docx to pdf

Hi,

I’m trying to convert a docx file to pdf using following options

document.Save(pdfStream, new PdfSaveOptions
    {
        Compliance = options.GeneratePdfA? PdfCompliance.PdfA2u : PdfCompliance.Pdf17,
        PageMode = PdfPageMode.UseNone,
        PrettyFormat = true,
    });

The resulting pdf still contains the links from the table of contents but they do not work.

Contents.docx (15.7 KB)
test.pdf (43.1 KB)

Attaching examples

@nklemen Unfortunately I cannot reproduce your issue on my side with the latest Aspose.Words 22.7.0 version. Please find the attached output PDF document produced on my side test.22.7.pdf (35.8 KB). Hyperlinks in the table of contents works as expected. Please, update to the Aspose.Words latest version and attach your output here if you will still be facing this issue.

Hi, updates didn’t change a thing. Should i be using different save options?

test.updated.pdf (43.1 KB)

@nklemen In your PDF output the producer application is GdPicture.NET and not the Aspose.Words. If you are using this library to postprocess Aspose.Wrods PDF output then it may be the case. Please provide the direct output of Aspose.Words library for testing. Otherwise unfortunately we do not provide support for third party tools.