Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF.js cannot be opened on IE11. #4031

Closed
luongtran opened this issue Dec 14, 2013 · 16 comments
Closed

PDF.js cannot be opened on IE11. #4031

luongtran opened this issue Dec 14, 2013 · 16 comments

Comments

@luongtran
Copy link

I use pdf.js to display pdf file on my website. It works fine on firefox. chrome, safari, IE10, IE9. But it doesn't work on IE11. Please open below link on IE11 and let me know the issue.
http://www.simpleone.com/contracts/546?token=411e26955f24112e64cb

@Rob--W
Copy link
Member

Rob--W commented Dec 14, 2013

Confirmed in IE 11.0.9431.0, with and without HWA.

@luongtran
Copy link
Author

Yeah. So what problem with this browser version? What's wrong?

@yurydelendik
Copy link
Contributor

Duplicate of #3977 ?

@luongtran
Copy link
Author

No, i think difference. In this issue, my pdf file only has text and signature. And when i use Prawn with PDF.JS to display. Nothing displayed. Only the blank pages and the page number.

@timvandermeij
Copy link
Contributor

Closing as fixed. Opens fine for me in IE11.

@marcelodesouza
Copy link

It does not work to me on IE11. See attachment

pdfjs-ie11 fw

@ahmedMgouda
Copy link

pdf.js downloading file in IE !
it work fine in chrome and Firefox
i'm using compatibility.js

@KthProg
Copy link

KthProg commented Mar 4, 2016

Still broken in IE11. Specifically, IE11 does not open scanned PDF files. It just hangs.

@bornes
Copy link

bornes commented Jan 3, 2017

Same problem, bug cause: IE 11 document.currentScript does not works

https://github.com/JamesMGreene/document.currentScript#browser-compatibility

@Rob--W
Copy link
Member

Rob--W commented Jan 3, 2017

@bornes Did you include compatibility.js (https://github.com/mozilla/pdf.js/blob/master/web/compatibility.js) in your project? It contains a polyfill for document.currentScript.

@bornes
Copy link

bornes commented Jan 3, 2017

The compatibility.js returns the dom element in document.currentScript polyfill. You need the path of the current script (src) to make the script name replacement further

@yurydelendik
Copy link
Contributor

You need the path of the current script (src) to make the script name replacement further

@bornes PDFJS.workerSrc shall be specified. The logic that using document.currentScript is unpredictable and not advertised as best solution in the documentation or examples.

@bornes
Copy link

bornes commented Jan 3, 2017

👍 Yes, that is correct. Was my "solution" for this issue. I only post the cause of the bug in my first comment

@thj-dk
Copy link

thj-dk commented Jan 19, 2017

Same problem here. Is this a known issue, or?

@jokeMF
Copy link

jokeMF commented Jan 20, 2017

Is there a solution or workaround?

@ozknemoy
Copy link

same story. version 1.8.618

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests