I'm trying to use pdf.js for showing a document in a data URL on IE10. That is, something like this.
It works well with Firefox or Chrome, but in Internet Explorer 10 and 11, the interface is shown, but stays empty, and the document never loads.
I checked, compatibility.js is included in the renderer page (viewer.html), so IE support should be present.
EDIT: actually it's a security issue, as IE doesn't let to run a request of this type.
Thanks in advance,
Ok, if someone runs to the same problem, I solved it by bypassing the lib's normal loading path, and as async5 advised, converting directly the data to a byte array.
That is, in viewer.js, add those lines under line 6856 :
(the base64 to byte array code is the one posted by Codetoffel here)