-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Safari iPad iOS 10.2 - PDF not loading #7936
Comments
I believe that this should have been fixed by PR #7841, which (among other things) disables range requests on iOS devices.
If you use the latest version of |
Closing as answered, since the advice in #7936 (comment) should be enough to fix this issue. |
@Snuffleupagus i cant understand how you include compatibility, when you get worker and document. I can show the code here: first, i'm using require: var pdfjsLib = require('pdfjs-dist/build/pdf'); pdfjsLib.PDFJS.workerSrc = require('pdfjs-dist/build/pdf.worker');
pdfjsLib.PDFJS.getDocument(this._pdfPath).then(function(pdfDoc_){
pdfDoc = pdfDoc_;
renderPage(pageNum, 1);
}); |
Crashed chrome on iPad while rendering pdf with 70 pages, |
Can't seem to make it work on ios too! compatibility.js is gone from the repo! |
Configuration:
When i load up PDF.js on Safari iPad iOS 10.2, no pdf is displayed. The PDF.js framework displays, but a pdf never loads. I can fix this by going in and setting: disableRange: to true in viewer.js. I have tried including the compatibility.js file, but it still does only work is disableRange is set to true.
Works perfectly well in Chrome on Windows with the disableRange set to false.
The text was updated successfully, but these errors were encountered: