cancel
Showing results for 
Search instead for 
Did you mean: 

How to export pdf for custom things?

0 Kudos

Hi, experts. I try to make functionallity for download pdf file and the content inside it will be some custom template with images and some table for example. I try to use javascript libraries ( jsPDF for example ) but more of them doesn't support css and this is the problem. The template for pdf file, that how should looked is with css styling. I saw for Jasper ( java library , it is OOB imported ) but I don't know how to work with her. Some one can you helped me, if you know some library to do this or to give me example with 3-4 steps how to use Jasper. Thank you :)

Accepted Solutions (0)

Answers (2)

Answers (2)

RaufAliev
Participant
0 Kudos

I have a comprehensive guide on the topic on my blog: https://hybrismart.com/2017/06/15/pdf-and-sap-hybris/ All libraries, SAP Commerce integration, proof of concept etc. I hope you will find everything you need there.

0 Kudos

Thank you a lot :)

former_member620692
Active Contributor
0 Kudos

You can use the open source Apache PDFBox. You can also use a paid library, iText which is also probably, the most popular.

shrikant_nikam
Participant
0 Kudos

: Can we use the JasperReportExportService ? to convert the HTML to PDF as free , I dont want to use the iText paid version.

former_member620692
Active Contributor
0 Kudos

Of course, you can use it. Hybris reportcockpit too uses it. You can check https://www.wavemaker.com/learn/how-tos/generate-pdf-file-using-jasper-reports/ for an example.