Skip to Content

PDF Display in mobile view sapui5

May 24, 2017 at 11:51 AM


avatar image

Hi All,

I have implemented below code in my application to integrate PDF:

var odataModel = new sap.ui.model.odata.ODataModel(finalUrl, false); talent.getView().setBusy(true);, null, null, true, function(oData, oResponse)


var pdfURL = oResponse.requestUri;

var newpdfURL = pdfURL + "?&embedded=true";

var html = new sap.ui.core.HTML();

html.setContent("<iframe src=" + newpdfURL + " style='width:600px; height:500px;' frameborder='0'></iframe>");

var panel = new sap.m.Panel(); panel.addContent(html);



Its working properly in desktop view but pdf is not getting displayed in mobile view, its showing blank page and also automatically downloads the PDF

Please can anyone help me regarding this issue


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers