cancel
Showing results for 
Search instead for 
Did you mean: 

Display PDF in My Inbox from DMS

andreeav
Explorer

I am trying to display a PDF from Document Management System using PDFViewer.

The PDF file is succesfully retrieved from DMS, but it cannot be previewed in the app and I get "PDF file could not be displayed."

  • I get "Error: Underlying iframe was not found in DOM. - " and the following :

  • I tried adding in index.html :
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; frame-src * blob:;">
  • The domain is added in "iframeDomains" and in Trusted Domain in BTP.

  • Also used URLWhitelist :

What could be causing this issue?

Accepted Solutions (0)

Answers (4)

Answers (4)

VoJu
Participant

Please look at SAP Note: https://me.sap.com/notes/0003429273 

I had the same issue and by setting isTrustedSource = true it was resolved.

The behavior of sap.m.PDFviewer has been enhanced by adding the property isTrustedSource. It can be used by the app developers to set the desired display behaviour for the PDFViewer.

The behaviour of the property is as follows:

  • If isTrustedSource is set to true, the PDFViewer opens with the displayType set to "Embedded" on desktop devices, which means that the PDF content is directly shown within the PDFViewer. (Recommended: Set this property to true only when the PDF is generated by the application or the PDF is scanned for viruses.)
  • If isTrustedSource is set to false, the PDFViewer opens with the displayType set to "Link" on desktop devices, which overrides any configuration that has been provided by the application for the property displayType. This means that the PDFViewer appears as a toolbar with a download button.


 

bopana
Explorer
0 Kudos
Thank you for showing me this note !
bblanckaert
Explorer

Hello, I have the same issue for one of my users.

When I try to open the same file, it works fine. Also the same user can open it on a colleague's pc. I'm waiting for more information about her version of Adobe Acrobat.

bopana
Explorer

Hello c3d1947136cd4c748a7aa794001af496 , can you please take a look at this ?
Thank you

kasch-code
Participant
0 Kudos

I just had the same problem with one of my users, while for all others the embedded PDF display was just working fine.

It turned out, that the setting "Always download PDF files" in the Edge browser needs to be inactive.
I only have a screenshot in German, but you should be able to find the setting under the "Site permissions":

Maybe this helps to resolve your issues, too.