IronPDF - _blank hyperlinks in a PDF open in same browser tab
This is a known limitation of many web browsers when opening a PDF in a browser.
Not specific to IronPDF.
Chrome has this issue, so does Safari and we await an update from the browser developers to fix it.
_blank is not respected in PDF documents.
If you hold down control and click the link in the PDF (command on macOS) it will open in a new tab.
You can achieve the same by printing any web page to PDF in your browser print menu and notice the same behavior
When viewing a pdf in Adobe Acrobat, or Apple Preview you will notice that links open in a new browser tab.
Bug report for chrome web browser:
https://support.google.com/chrome/thread/9273095/open-display-pdf-in-a-new-tab-when-click-on-a-link?hl=en
As this relates to your client software there is nothing we can currently too change this behavior.
Rendering this simple HTML file PDF via print to PDF in Chrome or Safari gives same behavior as IRonPDF.
The hyperlink opens in same tab if viewed in a browser rather than a desktop PDF client.
test.html
test.html.pdf