Skip to main content
Participant
Jun 9, 2022 7:51 AM UTC
Question

Console Errors in IE11 & Firefox while using PDF Embed API

Hi,


We are getting the below console errors while using the PDF Embed API in IE11 and Firefox,

IE11 - Unhandled promise rejection ReferenceError: 'TextDecoder' is undefined

 

Firefox - Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”).


These errors can be seen on adobe's demo page too- https://documentcloud.adobe.com/view-sdk-demo/index.html#/view/FULL_WINDOW/Bodea%20Brochure.pdf

 

Please suggest if there is a fix for this.

Thanks in advance!

 

 

This topic is closed to new replies. Start a new post to keep the conversation going.

6 replies

Joel Geraci
Community Expert
Community Expert
Jun 9, 2022 3:31 PM UTC

There are two issues here. IE 11 is not a supported browser. Supported browsers are as follows.

Supported browsers

PDF Embed API is supported on the latest versions of all modern browsers.

  • Windows - Microsoft Edge, Google Chrome, Mozilla Firefox.

  • macOS - Safari, Google Chrome, Microsoft Edge, Mozilla Firefox.

  • Android - Google Chrome.

  • iOS - Safari, Google Chrome.

 

The Firefox issue is as described by the error, the page that Embed API is trying to load into is blocking the script.

Translate
Participant
Jun 10, 2022 9:42 AM UTC

Thanks for the quick respone.


I undersatnd the IE11 is not supported anymore.
But, for mozilla is there a way we can avoid this error since we are gettting it in the demo site as well.

Translate
Joel Geraci
Community Expert
Community Expert
Jun 10, 2022 2:50 PM UTC

There's something about your site that is blocking the .js from loading. I have no way to diagnose what that might be.

Translate