Open ruempel opened 1 year ago
@ruempel This is currently not possible. I will add to the list of feature requests. Alternatively, you can send me a PR, and that would be faster.
@ruempel This was easy to address, I was already upgrading to Angular 15, so added a "target" parameter as well. Please look for next release.
Usage like this
<ng2-pdfjs-viewer #externalPdfViewer [externalWindow]="true" openFile="false" [useOnlyCssZoom]=true target="_myWindow"></ng2-pdfjs-viewer>
I can open a PDF document with
[externalWindow]="true"
in a new window or tab. UsingexternalWindowOptions
I only managed to pass options fromwindowFeatures
documented in https://developer.mozilla.org/en-US/docs/Web/API/Window/open, but I was not able to pass atarget
to e. g. open the next PDF document in the same window or tab as the first document.How can I open a PDF document in a specific target window?
If this is currently not possible, I hereby request to add passing the target window as a parameter.