cancel
Showing results for 
Search instead for 
Did you mean: 

sap.m.PDFViewer (v1.48) in Master-Detail application on a mobile device not showing

Former Member
782

Hi,

I am developing a Master-Detail application which should show an embedded PDF in it's detail view. The project is based on UI5 version 1.48, so the new PDFViewer control can be used.
In desktop mode everything works as expected (fig.1)

But on a mobile screen PDF is not showing properly (Fig 2).

The data source property binding at the PDF control is done by OData path.
<!-- PDF-Viewer since SAPUI 1.48 -->

<FlexBox id="fbPDFViewer" 
         direction="Column" 
	 renderType="Div"
	 class="sapUiSmallMargin">
	
         <PDFViewer id="idPDFViewer"
	    	   source="{myModel>/myPDFUrl}"
		   title=""
		   busy="true"
		   showDownloadButton="false"
		   height="700px" 
		   width="95%" 
		   loaded="onPDFLoaded"
		   errorMessage="{i18n>notFoundText}"
		   errorPlaceholderMessage="{i18n>notFoundText}">
	</PDFViewer>
</FlexBox>

Is there any hint, whats going wrong here?
Thank you all!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member

Even the sample for embedded usage doesn't work on mobile devices.
I guess now it's a core issue...
2017-10-25-15-36-43-sapui5-sdk-demo-kit-v20.png

former_member88235
Participant
0 Kudos

It seems to be a design descision. On github, there is a discussion about this behavior:

https://github.com/SAP/openui5/issues/1759