Skip to main content
Participant
June 9, 2022
Question

Console Errors in IE11 & Firefox while using PDF Embed API

  • June 9, 2022
  • 1 reply
  • 824 views

Hi,


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

IE11Unhandled promise rejection ReferenceError: 'TextDecoder' is undefined

 

FirefoxContent 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 has been closed for replies.

1 reply

Joel Geraci
Community Expert
Community Expert
June 9, 2022

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.

Participant
June 10, 2022

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.

Joel Geraci
Community Expert
Community Expert
June 10, 2022

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