Convert HTML to PDF in IONIC


#1

Hello guys, i want to convert an HTML template to PDF , i used jsPDF library that can do the job , but it’s not working in ionic , any one here have any other library or any idea to convert HTML to PDF ?


#2

jsPDF should work with ionic?

i used pdfMake, but it only accepts a json config object. But you have the ability to add css-styling :wink: , which is nice.


#3

Yes it work fine in Browser , but in a real device , save() function doesn’t work


#4

i found this solution https://github.com/MarouaneSH/Ionic-jsPdf-Html2Canvas