Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pdf.js not working on Internet Explorer

Can anyone explain me why this code don't work in IE? In Chrome everything works just fine.

Part of my Html:

<head>
<script type='text/javascript' src="//code.jquery.com/jquery-1.9.1.js"></script>
<script type='text/javascript' src="http://vivin.net/pub/pdfjs/pdf.js"></script>
<script type='text/javascript' src="http://vivin.net/pub/pdfjs/textlayerbuilder.js"</script>
</head>  
<body>
<div id="pdfContainer" class = "pdf-content"></div>
</body>

Full code and example that works on Chrome: http://jsfiddle.net/vivin/RjqUf/

like image 716
maxus182 Avatar asked Apr 26 '14 14:04

maxus182


1 Answers

I've figured out what my problem was. I replaced the pdf.js with pdf.min.js and now everything works fine in both Explorer 10 and Chrome. Don't know exactly why, but it works.

like image 101
maxus182 Avatar answered Sep 29 '22 00:09

maxus182