I created a PDF file programmatically. For this, I used the library to convert HTML to PDF. There are several links to some pages of the website in my PDF file.
I implemented html as follows and then programmatically converted it to PDF.
<a target="_blank" href="http://mywebsite_url_here.html">Link</a>
But when you open this PDF file in Chrome or Firefox and click any link, it exists in PDF format. Links open, this is the same TAB as the new TAB. Please help find a solution for this. so my pdf file is on one tab and the link will open on another tab in the browser.
I have already tried
target="_blank"
target="_top"
<a onclick="window.open ('http://mywebsite_url_here.html', '');
return false" href="javascript:void(0);"></a>
But for me nothing worked.
source
share