cancel
Showing results for 
Search instead for 
Did you mean: 

SAP UI5 PDF View doesn't work any more and have to download to view in version 1.71.70(202408070827)

richard_jin1
Discoverer
0 Kudos
187
 
View Entire Topic
Marian_Zeis
Active Contributor
0 Kudos

You need to set the parameter "isTrustedSource" to true.

In version 1.71.63 a new property "isTrustedSource" was introduced.:

[FIX] We've introduced the isTrustedSource property as a security enhancement for the PDFViewer control as detailed in the API reference

see API: https://sapui5.hana.ondemand.com/1.71.70/#/api/sap.m.PDFViewer/controlProperties

Parameter to determine if the given PDF is from a trusted source. If the source is valid this property can be set to true. If isTrustedSource is set to true, the PDFViewer opens with the displayType set to "Embedded" on desktop devices. This means that the PDF content is directly shown within the PDFViewer. 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. This means that any configuration that has been provided by the application for the property displayType is overridden. In this case, the user would need to download the PDF to view its content.

richard_jin1
Discoverer
0 Kudos
Thank you so much