HTML to PDF - not 2nd page is added
Hi there, I'm wondering, why me pdf has only one page. My text is cutted off. In the demo it seems, that the script add automatic an new page to the pdf if needed.
Thanks for your help
var doc = new jsPDF('p'); // p means potrait , u can use landscape mode too
doc.setFontSize(10);
doc.setFont("times");
doc.text(5, 10, "your data here");
doc.save("test.pdf");
use this jspdf script : https://github.com/MrRio/jsPDF/blob/master/jspdf.js
By using this we can generate multiple page pdf.
thanks but, I need an automatic page break, cause I have a long html pages that should be converted into a pdf
It breaks the long text into pages while generating pdf automatically.
this breaks nothing: pdf.fromHTML( );
if I put my html into the text method I loose the css!
fixed in latest version