Skip to Content
0

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

May 01, 2017 at 08:28 AM

964

avatar image
Former Member

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 .

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

2 Answers

Srikanth KV May 01, 2017 at 04:45 PM
0
Share
10 |10000 characters needed characters left characters exceeded
Ryan Crosby May 01, 2017 at 04:54 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded