user3407300
user3407300

Reputation: 419

angular pdf not working on IOS 10

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

Answers (2)

Prakash Mishra
Prakash Mishra

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

user3407300
user3407300

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

Related Questions