I use the latest version of ViewerJS to render and show a PDF file on my web application.
For most PDF files, a PDF file is displayed correctly, however for some large PDF files, nothing is shown in a ViewerJS frame.
I checked JapaScript console, then I found an error "TypeError: domPage is undefined. (PDFViewerPlugin.js line 128)
".
The source code is available here
Do you have any suggestion to fix this problem?