sayanee / angularjs-pdf

:page_facing_up: An AngularJS directive <ng-pdf> to display PDF files with PDFJS
http://sayan.ee/angularjs-pdf/
MIT License
494 stars 248 forks source link

Angularjs-pdf does not work on IE #135

Closed itssujan closed 7 years ago

itssujan commented 8 years ago

The library does not work on IE11 and has started effecting our app completely. I have gone ahead and disabled the pdf viewer for now untill we have a solution.

The demo site also doesnt work on IE11. Do let us know if there is any idea on this? I will keep looking for solutions from my side too.

Thanks!

itssujan commented 8 years ago

Little more info from debugging

document.currentScript does not work on IE11 and so pdfjs location code does not work

udiedrichsen commented 8 years ago

IE11 works for me. Check this out: https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#what-browsers-are-supported

and include the https://github.com/mozilla/pdf.js/blob/master/web/compatibility.js

file in your project. Hope that helps.

dennybiasiolli commented 7 years ago

@itssujan did you solve your compatibility problem with @udiedrichsen 's solution?