angularjs-pdf icon indicating copy to clipboard operation
angularjs-pdf copied to clipboard

IE issue - No PDFJS.workerSrc specified

Open sanjayradadiya opened this issue 6 years ago • 1 comments

Directive is not working on internet explorer its getting No PDFJS.workerSrc specified error.

sanjayradadiya avatar Jul 05 '18 13:07 sanjayradadiya

I had the same IE error in my project, maybe the reason is also the same (it's strange enough):

I have basically just one JavaScript file which is called "myapp.js". All AngularJS and PDF.JS stuff is concatenated into this file. The PDF.JS worker file is called "myapp.worker.js" - and has to be in the same folder as "myapp.js". I ran into a problem with IE 11 when I set the defer attribute in the <script> tag with which "myapp.js" is referenced, getting the error you mention. After removing defer it worked again in IE.

cschwaderer avatar Aug 07 '18 07:08 cschwaderer