on 2024 Nov 04 2:55 PM
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
30 | |
10 | |
8 | |
8 | |
7 | |
7 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.