Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PDF.js not working on IE9

Does anyone have any clue how to get PDF.js to work on IE 9? I have tried everything I can think of to get it to work and no go. I have downloaded the hack.js file and tried adding it before and after pdf.js and before and after viewer.js. That didn't work.

I then tried downloading compatability.js, viewer.js and pdf.js from their Demo (Which I can confirm is working 100% in IE9) and put them into my HTML page, no go. I am using their PDF file, which some sites say that some PDFs work and others don't. So I figured if it worked on their site it must work on mine--but no go.

The Demo of theirs works fine, but anytime I try to get mine to work in IE9, whether I use their files or my compiled version, it doesn't work.

like image 519
jfreak53 Avatar asked Sep 21 '12 20:09

jfreak53


2 Answers

Try to load compatibility.js before pdf.js. Something like this:

  <script type="text/javascript" src="/js/compatibility.js"></script>   <script type="text/javascript" src="/js/pdf_compr.js"></script> 
like image 164
Pavel G. Klukin Avatar answered Oct 22 '22 14:10

Pavel G. Klukin


Browser support in their FAQs - check this as since the question was asked IE9 could have be supported: https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#what-browsers-are-supported

like image 36
Ric Avatar answered Oct 22 '22 14:10

Ric