cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 PDF Viewer Controller

benlim
Contributor
0 Kudos

Hi,

Recently I faced this weird situation in html5 app. Suppose by using pdf viewer is supported in desktop mode. However, when I use it, my pdf content does not able to load and the download button is grey off. The funny thing is when I run in chrome debugging mode, the pdf viewer download button is enabled which allow me to download the pdf. Anyone have faced such situation?

Desktop mode

Debugging Mode

Thanks.

Regards,

Ben

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member365727
Active Contributor
0 Kudos

when you open chrome debug tools your screen size reduces and browser assumes you are in tablet mode. It could be the reason why the button is enabled in debug mode.

try to open chrome debug tools in a new window and see if the button is enabled or not.

Also the button property could be bound to device model to enable it only in tablet/phone mode. have you checked the binding in UI5 inspector?

benlim
Contributor
0 Kudos

Once open in debugging mode, the button is enabled in new window. How could I bind the property of pdf sap viewer to always enabled download button regardless in desktop or mobile mode? Or how do i skip the loading of pdf generation and only display download button just like in mobile mode for scenario using desktop?

benlim
Contributor
0 Kudos

An updates, I notice my pdf is able to load when launch in WebIde but not able to load when it is deployed to SCP fiori launchpad. Any idea on this?