Pdf view blocked when we open more than one at the same time #2335
Unanswered
Gabrielle-anne
asked this question in
Q&A
Replies: 1 comment 11 replies
-
Are you displaying two PDFs side-by-side? That won't work because pdf.js pollutes the global namespace. You can solve this by putting the PDF viewers into iFrames. I've shown this approach here: https://pdfviewer.net/extended-pdf-viewer/side-by-side However, your error message doesn't really match this scenario. Last time I tried, it was simply impossible to display two instances of |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am using this library in an application, and we use a resizing for the PDFs (pages are not all of the same size, and it must display each layer like it's in full screen (they have to take the max place they can in the place allowed)), unfortunately we do have a problem when we open two PDFs at the same time, the second one return an error :
And we can't navigate (we must refresh the page), the PDF is blocked on the first page(for the second and the other nexts only).
I tried timeout, ngOnInit, ngOnCheck, try and refresh if errors occur ..... i'm currently totally clueless.
Can somebody help me ?
thanks a lot
Beta Was this translation helpful? Give feedback.
All reactions