Skip to Content
avatar image
Former Member

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

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 .

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • May 01, 2017 at 04:45 PM
    Add comment
    10|10000 characters needed characters exceeded

  • May 01, 2017 at 04:54 PM

    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

    Add comment
    10|10000 characters needed characters exceeded