Domanda

I managed to get pdf.js working in chrome and other browsers. However it doesn't seem to be loading properly in Safari. Safari doesn't load the first page of the PDF files. I've not modified any code in the pdf.js library. Any help?

È stato utile?

Soluzione

Apparently there was an:

Warning: Unhandled rejection: ReferenceError: Can't find variable: MozBlobBuilder

This occured because in the webkit version the typeof Blob === "object" when there is an image in the pdf being displayed and not the default (typeof Blob === "function"). To fix this issue we had to replace this line in util.js with (typeof Blob !== 'undefined')

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top