PDF Embed API broken on iphones
- October 7, 2022
- 2 replies
- 1142 views
I am using the PDF Embed API to add a PDF to a webpage inline. On our site the PDF is not loading at all when the page is browsed using an iphone. I get an error 'File preview error. File preview not available, please reload to try again'. But reloading doesn't work.
I checked the example page on the Adobe website and it is erroring as well when browsed on an iphone. Please see this page here on an iphone and see it is broken: https://documentservices.adobe.com/view-sdk-demo/index.html#/view/IN_LINE/Bodea%20Brochure.pdf
In the console of the browser the errors coming are:
Uncaught (in promise) Error: getMetadata request failed
at DocumentViewUtils.js:90:20
at MobXUtils.js:43:34
at s (mobx.module.js:1337:9)
at Yt (mobx.module.js:3120:20)
at e.track (mobx.module.js:3330:22)
at e.onInvalidate (mobx.module.js:1334:14)
at e.runReaction (mobx.module.js:3305:22)
at pn (mobx.module.js:3441:35)
at ln (mobx.module.js:3419:47)
at mobx.module.js:3448:71
Uncaught (in promise) {code: 'PREVIEW_RENDERING_FAILED'}
and
Uncaught (in promise) Error: failed to load https://documentservices.adobe.com/dc-edit-dropin/2.24.4_1.746.0/bootstrap.js
at o.onerror (Discovery.jsx:590:20)
Am I somehow doing something wrong or does Adobe need to fix this issue?
