Skip to Content
0

How to convert UI5 view to PDF in Hybrid HCPms app

Feb 27, 2017 at 10:34 AM

136

avatar image
Former Member

Hello Expert,

We are developing hybrid app on HCP using HCPms services,We have a requirement where we have to download a UI5 view to PDF in Hybrid app,We do not have any ECC system in place ,App is running on HANA database.

Is there any way we can generate PDF at HANA side and send it back to UI5.

I read threads where generating PDF client side is not recommanded,I could not find any Kapsel plugin UI5 api to convert Ui5 to PDF,only third part apis are thre but that too no guarantee that they will work on device in Hybrid app .

Any quick help or Standard solution ismost welcome.

Thanks,

Siddharth

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

2 Answers

avatar image
Former Member Feb 27, 2017 at 03:41 PM
0

Hi,

Well you could probably use jsPDF to generate the PDF on the client side (UI5) or on the server side (Node.js / xsjs): https://github.com/MrRio/jsPDF

Cheers,

Pierre

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Thanks Pierre,But JSPDF does no work properly in android /iphone see the thread can you suggest ?

http://stackoverflow.com/questions/35626722/jspdf-cannot-generate-pdf-in-mobile-android-iphone

0
Former Member
Former Member

You should also be able to use jsPDF on the server side with xsjs or Node.js.

0
avatar image
Former Member Feb 28, 2017 at 09:35 AM
0

Experts any quick help is most welcome ,Need to genarte PDF from UI5 view and it should work with All devices as App is being developed using HCPms and Hybrid in nature

Share
10 |10000 characters needed characters left characters exceeded