How to generate Pdf file from html data?

Hi Guys,
I need to generate a pdf file with the available data in the view. I looked into the libraries like jsPDF, pdfkit, pdfmake. But none of the have proper documentation for Ionic 2. Is there any plugin/ library to generate pdf files in Ionic 2 with proper documentaion?
Thank you.

I am also looking for it

ionic is front end code, to accomplish a task such as creating PDF’s you need backend logic.

ideally you can use ajax to send your ionic data to your server which performs creates the HTML & then generates the pdf. I normally use phantomjs for pixel perfect HTML -> PDF creations

You can generate pdf with pdfmake. refer following link.