PDF.JS version 4

0
0

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.

  • You must to post comments
0
0

Simple fix found; in web.config <system.webServer> section, add this:

        <staticContent>
            <remove fileExtension=".mjs" />
            <mimeMap fileExtension=".mjs" mimeType="application/javascript" />
        </staticContent>
I have spent 4 hours trying to figure this out and found it by searching for how to handle MJS files in IIS.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.