We’re trying to upgrade PDF.JS from v3 to v4 but can’t get it working for some reason – we just get a blank page. Has anyone else had any luck?
We have PDFJS as a sub-folder of our site and call it using /pdfjs/web/viewer.html?file=filename.pdf#page=1&zoom=auto and it’s not finding PDFJS files. We use an IFrame panel on our page to show it.
Simple fix found; in web.config <system.webServer> section, add this:
<staticContent> <remove fileExtension=".mjs" /> <mimeMap fileExtension=".mjs" mimeType="application/javascript" /> </staticContent>
Please login first to submit.