You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Demo viewer is not designed to be used/instantiated multiple times on the same page. However we performed multiple steps toward making it work in such manner (e.g. #7209 or #6571).
I am facing an issue to add multiple PDF.js viewers in single page.
Hosting multiple iframes gives the same effect, so there is no real benefits for the project to have and support such functionality. Closing as won't fix for now.
Improvements have been made to make the viewer much more stand-alone and less dependent on global attributes. However, the iFrame approach is still the recommended way for now, but we're always open for contributions to improve the situation. Thanks.
Hi Team,
I am facing an issue to add multiple PDF.js viewers in single page. First of all, I don't know how to start, as in the example page i.e.
https://mozilla.github.io/pdf.js/web/viewer.html
Here, the whole structure uses IDs, i.e. outerContainer, mainContainer, viewerContainer, viewer.
How to add similar structure to show other PDF in the same page. Please provide any example page, which I can refer.
Thanks
The text was updated successfully, but these errors were encountered: