intbot / ng2-pdfjs-viewer

An angular component for PDFJS and ViewerJS (Supports all versions of angular)
Apache License 2.0
225 stars 113 forks source link

Option to Open links within PDF in new window or pop up window #229

Open tnohelty opened 1 year ago

tnohelty commented 1 year ago

I don't see this option available, but wondering if there is one or you could work on one to handle the following: We have a pdf that has links to YouTube videos. Currently when the link is clicked it overlays the current browser window that has the angular program displaying the pdf with the YouTube video. If you press the back arrow, it will come back to the angular program displaying the pdf. While this is functional, the users often don't understand how to get back and the program displaying the pdf is essentially gone to them. Ideally, I would like an option available that we could set to display the links in a new tab or pop-up window (additional options would be fine, but these would be the minimum).

Example: [external-link-target] = "'blank'"