cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 PDF Viewer Embedded not working on chrome

PedroLazaro
Participant
818

Hello experts! Good night!

In my current project I'm trying to load a pdf embedded in the view via the sapui5 PDFViewer control, but It only works on Microsoft Edge browser. In chrome, I'm getting a generic error like 'It was not possible to load de pdf'. 

For my surprise, the same occurs when I access the sample page:
PDF Viewer - Embedded - Samples - Demo Kit - SAPUI5 SDK (ondemand.com)

on chrome:

PedroLazaro_2-1728167448992.png

 

in edge :

PedroLazaro_3-1728167479451.png


here, if it is of some help, I have the console log of the chrome:

PedroLazaro_4-1728167584182.png

The same behavior was identified by my teammates.

May you share some thoughts?

Best regards!

Pedro

 

Accepted Solutions (1)

Accepted Solutions (1)

pichlmann
Discoverer

Hi, 

i found this Note: https://me.sap.com/notes/0003510069

The issue is related to a new experimental flag being introduced by Chrome, specifically the "OOPIF for PDF Viewer" flag.

Hope this helps.

KR Florian

PedroLazaro
Participant
0 Kudos
Hi, Florian! Thank you for share it! I disabled the flag and now it works!

Answers (2)

Answers (2)

gs_debo
Discoverer

Please let me know if you find a solution 🙂

Noel_Hendrikx
Active Contributor
0 Kudos

Hi Pedro,

Which version of Chrome do you use? I have v129 and can preview the PDF fine. You can raise a ticket here also, since it has nothing to do with your custom code.

https://github.com/SAP/openui5/issues?q=is%3Aissue+is%3Aopen

Regards,

Noël

Marian_Zeis
Active Contributor
Same for me, tried in Firefox and Safari and they all work