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