Never use jsPDF library for pdf generation in client side

Never use jsPDF library for pdf generation in client side

If you really want to show basic things and simple tables you can use jsPDF, other than that it has sooooo many limitations, at first glance looks really cool to be able to generate pdfs in the client side but after that you try to do more complex stuff and generate more complex pdfs oh man it’s a real pain in the butt, one of those big concerns are that you can not use Css styles for it, for example in my case I have a section that uses divs and some Css styles and the only way to put that content and styles into a pdf is converting Html into canvas using one plugin(html2canvas) but then the problem about the low quality of the output(because a screenshot) and the blurry/fuzzy images.

Even using a work arround the pdf generated has a poor quality.
http://embed.plnkr.co/WjdDWzCsOM0Da4Lz5UsU/

I just found a new one: no UTF-8 support haha seriously? I was trying to show a simple check mark symbol using ‘&#10003’ in a table row :(
https://github.com/MrRio/jsPDF/issues/12

To be continued…(Regresamos contigo al estudio Joaquin hahaha)

H.

No Comments

Post A Comment