Which JavaScript Library Should I Use for Client-side HTML-to-PDF Conversion?

First of all, let me give you the list of the libraries that I have tried: jsPDF, html2pdf.js, pdfmake, and pdf.js. They are all open-source projects that you can find on GitHub.

I presented here several aspects of the web page rending using these Javascript libraries.

First, the fidelity of CSS style — jsPDF preserves style the best, while html2pdf.js is also good, but the PDF it generated is a big image, and text is not selectable. pdfmake, on the other hand, cannot keep…