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

Free Support Forum - aspose.com

Hyperlink in PDF Opening in new tab

We are generating the word to PDF but the hyperlinks in PDF are not opening in new tab. For that I tried using the below code Still its not working.



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

  • Your simplified input Word document
  • Aspose.Words 19.2 generated output PDF file showing the undesired behavior
  • Please also create a standalone simple console application (source code without compilation errors) that helps us to reproduce your current problem on our end and attach it here for testing. Please do not include Aspose.Words DLL files in it to reduce the file size.
  • Any additional steps that you think might be required to reproduce this issue on our end.

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.

Thanks Awais for your reply.

Pleas find the attached zip file containing the generated pdf, source docx file and the static program used to generated PDF using the Aspose 19.1 version.AsposeForumQuestion.zip (46.3 KB)


But, we tested your “test.pdf” with the latest version of Firefox i.e. 65.0.1 (64-bit) and it is opening the link in new tab as expected. Please upgrade Firefox to the latest version and see how it goes on your end. Hope, this helps.


Is there any support for Firefox for lower versions and chrome? Or any customization that we can do?


We have logged your requirement in our issue tracking system. Your ticket number is WORDSNET-18208. We will further look into the details of this requirement and will keep you updated on the status of the linked issue.

Thank you Awais.


Regarding WORDSNET-18208, we have completed the work on your issue and concluded to close this issue as ‘Not a Bug’. Please see following analysis details.

Opening hyperlinks in new browser tab is not supported in PDF format itself. Currently, we use JavaScript app.launchURL() method when OpenHyperlinksInNewWindow flag is set. Apparently, this JavaScript code is not properly executed in some browsers. We do not see what else we can do as we did not find any other options. So, this is definitely a browser issue. In addition, opening hyperlinks on the browser tab is not supported in the PDF format itself.


Sorry to resuscitate this old post.
But does this still works the same way?

OpenHyperlinksInNewWindow does not garantee that it will open on a new tab ou window?

Thank you.

@wemake Yes, OpenHyperlinksInNewWindow option is still working the same way. Hyperlinks in output PDF are wrapped into JavaScript app.launchURL() method and it is up to the browser to decide how to handle this JavaScript.