Jspdf: Can't render html to pdf

Created on 8 Jan 2018  路  9Comments  路  Source: MrRio/jsPDF

Hi I can't render the attached html to pdf with jsPDF. Can you take a look and let me know what's wrong with the html. I tried with embedded and external images.

Tipps feedback report generated by Ronald on 08 01 2018 at 14_04.html.zip

from_html.js

All 9 comments

I dont think, that somebody will write a testcase on his local PC or on jsfiddle to check your html.

I wish you good luck.

I don't get any error. I thought it's just a matter of html convention/structure?
Would be nice if there was a document giving some guide lines how to write the html which jsPDF can render properly.

Which method do you use?

doc.fromHTML and i'm passing the html as string directly to it.

Nope, will not work. FromHtml is too limited

Can i use something else?

Try addHTML or html2pdf

We are closing this issue, because we will not support any longer fromHTML and addHTML.

Explaination:
We are working on a new html2pdf plugin, which will be based on html2canvas and our context2d plugin. This should lead to more reliable results for your projects. And it will give us the time to focus on the core functionality of pdf-generation because we will not use our energy for writing/supporting/extending 2 html plugins. If you still want to use addHTML or fromHTML you can still use jsPDF 1.4.1.

Best Regards

Was this page helpful?
0 / 5 - 0 ratings