質問

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?

役に立ちましたか?

解決

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')

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top