Reputation: 419
I have an ionic app using angular-pdf-viewer, with pdf.js , to display pdf documents from a url. The viewer works on android devices and IOS devices with IOS 9 but as on IOS 10 the pdf will not show. Anyone else had a similar problem ?
Upvotes: 0
Views: 1463
Reputation: 109
I was facing the same issue. And I found out it is PDFJS's compatability issue. Workaround for this issue is, you can set
PDFJS.disableRange = true;
i.e you are bounding to download the whole file instead in chunks without detecting the device.
Please comment someone else has still an issue, even after this workaround.
Upvotes: 0
Reputation: 419
So I eventually found that I needed to move this line out of the if statement so that it is always run: PDFJS.disableRange = true; It seems to all be working fine now for anyone experiencing the same issue.
Upvotes: 0