Skip to main content
Participant
Feb 17, 2025 4:55 PM UTC
Question

PDF Embed API - Page error on certian IOS devices on safari

Hi,

We are encountering an issue (please find the attached image) when loading a webpage using the Adobe PDF Embed API. This issue occurs only on certain iPhone devices and exclusively in Safari.

We observed this issue on an iPhone 13 running iOS 15.0, where the page fails to load properly. While it also occurs on some other iPhone models, it functions as expected on most versions and devices.

Initially, the page loads correctly, but it then automatically reloads and breaks. After troubleshooting, we identified that the issue is caused by the PDF Embed API. Removing the API code allows the page to function as expected.

We would appreciate any assistance in resolving this issue, as it is impacting our production environment and requires an urgent fix.

Thank you!

 

 

 

7 replies

Participant
Feb 19, 2025 4:18 AM UTC

I think I would rather see your code to see if there is something hidden in there that might cause this issue.

Translate
Feb 19, 2025 3:53 PM UTC

The Codepen referenced above is my code.

Translate
Participant
Feb 20, 2025 7:14 AM UTC

Yes  the page crashes even with your code example, how can we fix this

Translate
Feb 18, 2025 8:18 PM UTC

How are you loading the PDF, from a URL or from a Promise?

Translate
Participant
Feb 19, 2025 8:56 AM UTC

Hi,

We are loading the PDF from a URL, but this shouldn't be relevant to the issue, as the problem isn't caused by our custom code.

To demonstrate, try opening the following CodePen example on an iPhone 13 running iOS 15.0 (I tested using BrowserStack). Click on the "Click to add PDF" button, and you'll see the page reload and crash:
https://codepen.io/wescouch/pen/vYxmrJp

 

Additionally, I tested the official Adobe PDF Embed API documentation's code snippet, and the page still crashes:
https://developer.adobe.com/document-services/docs/overview/pdf-embed-api/gettingstarted/

 

This suggests that the issue is inherent to the Adobe PDF Embed API rather than our implementation.

Translate