سؤال

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