This is more a question than an issue (just didn't know the right forum to post), does jsPDF.fromHTML support a couple HTML source including the images and css content? If we take a more complex HTML document, will the output end-up with the CSS and images?
It has quite limited support for CSS, you can check our live demo
You might be interested in our new .addHTML() PlugIn, as long you don't care on the final PDF size, since that renders html to canvas to insert the content as images.
I see what is going on there, it also looks like you can't select the text that is rendered in the PDF document. It isn't a true html to pdf conversion.
Another similar question, I saw code for 'doc_template' and templates in the jsPDF project, is there support for templating and how does that work?
Basically, we have complex documents we want converted to PDF. They may include, styling, images, svg, report layouts, etc.
I'm not aware of any template system here, but basically because i have no idea of anything predating this year, since i'm a collaborator on this project since a few months ago only.
If you have very complex documents i'm not sure if jsPDF will fit your needs, perhaps but dunno. If you would like to help improving it that will be very welcome :)
I'm having the problem of export html to pdf from chrome and IE using addHTML plugin able to generate not more than 20 pdf pages. if html page contains more than 20 pages, then not getting any response from browser. it seems blocked. we are using bootstrap.css for alignment. if i use fromHTML we can able to generate more pages but not picking the bootstrap.css styles. is there any solution to make it work?
how they are rendering css in this sample i downloaded from the website

Anyone found a solution for fromHtml being able to load css yet?
https://stackoverflow.com/questions/25946275/exporting-pdf-with-jspdf-not-rendering-css#:~:text=jspdf%20does%20not%20work%20with,use%20jspdf%20along%20with%20html2canvas.&text=make%20clickable%20button%20on%20page,that%20of%20original%20html%20page.&text=This%20is%20sample%20code%20for%20the%20jspdf%20html%20to%20pdf%20download.
The solution is to use html2canvas but it didnt solve my problem.
I hope the contributors solve this problem.
fromHTML is deprecated. Update to 2.x and use html instead.
Most helpful comment
how they are rendering css in this sample i downloaded from the website
