Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

Adobe PDF Embed API failed to render pdf on mobile browsers/view

New Here ,
Aug 24, 2023 Aug 24, 2023

Hello, I'm facing some issues with rendering pdfs on mobile view/browsers, hoping to conult if there is any workaround.

 

What I did

I cloned from the React Sample here: https://github.com/adobe/pdf-embed-api-samples/tree/master/More%20Samples/React%20Samples Using my own sample pdf and importing it locally in the code, I got it embed mode: SIZED_CONTAINER to work on a responsive browser view in Chrome. (See attached image)

Screenshot 2023-08-24 at 5.09.04 PM.pngexpand image

 

Problems Encountered

However, when I switch to a mobile view on the developer's console, the Embed API broke with an error 'PREVIEW_RENDERING_FAILED' (See attached image)

Screenshot 2023-08-24 at 5.08.12 PM.pngexpand image

 

 

I thought it might a chrome thing that it failed, so I loaded an emulator on Android Studio to check if I could replicate the same error, and it did. (See attached video link)

https://youtube.com/shorts/qoolVAywRxQ 

 

On another note, I've also run into a perculiar behavior when I change to a mobile dimension and refresh my page while I'm in the fullscreen mode. Upon the exit from fullscreen mode after refresh, the embedded pdf would have a fullscreen/enlarge icon on it and could only be viewed in fullscreen only. (See attached video)

 

I'm not sure what is causing these behavior, but is there any way I could get it to work on a mobile browser/view?

 

Link to my repository: https://github.com/Tidbit0519/pdf-embed-api-samples 

TOPICS
Bug , PDF Embed API
485
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Resources