Skip to Content

SAPUI5 PDF Viewer Controller


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




debugging-mode.png (12.3 kB)
desktop-mode.png (17.2 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 17, 2018 at 05:41 PM

    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?

    Add comment
    10|10000 characters needed characters exceeded