cancel
Showing results for 
Search instead for 
Did you mean: 

How to display a PDF using XSTRING data(from Odata service) ?

Former Member
0 Kudos

Hi Experts,

I am trying to display a PDF file( present in the SAP backend) in my UI5 app which is deployed on the Cloud portal. I am receiving XSTRING data from the OData service

Can someone suggest what approach to follow to achieve this .

Accepted Solutions (0)

Answers (2)

Answers (2)

Ryan-Crosby
Active Contributor
0 Kudos

Hi,

The first step is to convert the hex string into some stream of data so it can be embedded in the UI5 application. However, I would warn against going down that path as you will run into issues trying to render a PDF in iOS and experience container scrolling issues. You would be forced to use additional JavaScript libraries to handle the rendering portion in an iframe or canvas. I don't recall exact details but as of last summer I spent several days working on this to find that there was no good solution.

Regards,

Ryan Crosby

former_member365727
Active Contributor
0 Kudos