Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to open pdf in external Window on every new document? #266

Open
naji-makhoul opened this issue Mar 11, 2025 · 0 comments
Open

how to open pdf in external Window on every new document? #266

naji-makhoul opened this issue Mar 11, 2025 · 0 comments

Comments

@naji-makhoul
Copy link

i want to open pdf viewer in external Window, but every time it's overwrite the same pdf viewer browser tab ... how i can open every document in new tab?

html:

  <ng2-pdfjs-viewer #externalPdfViewer
  [externalWindow]="true" [openFile]="true" [viewBookmark]="false"
    [download]="true" [downloadFileName]="downloadFileName" [showSpinner]="true" target="_blank">
  </ng2-pdfjs-viewer>

ts:

  @ViewChild('externalPdfViewer') public externalPdfViewer;

        this.externalPdfViewer.pdfSrc = this.pdfSrc;
        this.externalPdfViewer.refresh();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant