We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Hyperlinks are not exported correctly in output PDF using .NET

Hi Support,
A pdf file create from a Word file do not show the full url, see the image attached (Create_by_Aspose.png).
The same Word file exported to pdf usinf Office Word the hyperlink is right, see the image attached (Create_by_Word.png).
I will attach a simple program to replicate the issue.

Andrea Gasparin

Create_by_Aspose.png (7.9 KB)
Create_By_Word.png (12.4 KB)
OP-9526.zip (282.4 KB)


We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-20931 . You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Hi Tahir,
Any news about this?


It is to inform you that the issue which you are facing is actually not a bug in Aspose.Words. So, we have closed this issue (WORDSNET-20931) as ‘Not a Bug’.

The hyperlinks are not exported by Aspose.Words and are generated by Acrobat Reader from the text. Hyperlink in Aspose.Words output is truncated because document structure is not exported. Hyperlink in MS Word output is full because document structure is exported. You could get the full hyperlink in Acrobat Reader if enable PdfSaveOptions.ExportDocumentStructure flag.

Also in your case hyperlink generation is up to PDF viewer application. So viewers other than Acrobat Reader may generate hyperlink differently. For example, Chrome generates truncated hyperlink even if document structure is exported. So to get the consistent hyperlink output you could set up the actual hyperlink in the source MS Word document. This way hyperlink will be exported to the PDF document and will be consistently displayed by all PDF viewers. And there will be no need to export document structure.