SAP Mobile App Development

PDFViewer for SAPUI5 Application

                Sometimes we may have to show pdf documents in our application.Earlier SAPUI5 Developers has to use third party libraries and custom controls to achieve this requirement.Now the happy news is we no longer have to😎.
           In the latest SAPUI5 version(1.48) there is a new control called sap.m.PDFViewer.Thanks to SAPUI5 development team.In this tutorial we will see simple SAPUI5 PDFViewer.

  1. SAPUI5 application created.

  1. Open the view and paste below code.We are using our brand new sap.m.PDFViewer and give the properties title and source.

  2. Now run the application.I have posted my application screenshot.
Note:I faced some issues in google chrome browser.It was not loading at first time.I was also getting a warning message of synchronous xmlhttprequest.We can hope for a stable control in upcoming UI5 versions.

What are you waiting for? spread the news😏..
Visit PDFViewer Demo page by SAP

If you enjoyed this post, I’d be grateful if you’d help it spread by sharing.Thank you! See you soon


Post a Comment

Powered by Blogger.