I'm using the following example to create a pdf that may have more than 1 page. The content being generated for the PDF is dynamic so no way of telling how long content will be. Currently code below only creates 1 page pdf and cuts off remaining content. Please advise.
var doc = new jsPDF();
var specialElementHandlers = {
'#editor': function (element, renderer) {
return true;
}
};
$('.download_pdf').click(function () {
doc.fromHTML($('.report-section-print').html(), 15, 15, {
'width': 170,
'elementHandlers': specialElementHandlers
});
doc.save('report.pdf');
location.reload();
});