jsPDF icon indicating copy to clipboard operation
jsPDF copied to clipboard

fromHtml() ,splitpage=true does not split page if html content spread on more than one page

Open umeshd opened this issue 12 years ago • 2 comments

fromHtml() ,splitpage=true does not split page if html content spread on more than one page. I am using jsPDF-0.9.0rc2/jspdf.js , jsPDF-0.9.0rc2/jspdf.plugin.from_html.js version of jspdf. var doc = new jsPDF(); var elementHandler = { '#render_me': function (element, renderer) {

        return true;
      }
    };


    doc.fromHTML($('#render_me').get(0), 15, 15, {
        'width': 170, 
        'margin': 1,
        'pagesplit': true,
        'elementHandlers': elementHandler

    });

    doc.save('Test.pdf');

umeshd avatar Oct 17 '14 13:10 umeshd

Above page split issue got fixed when I used jspdf library version from github.

umeshd avatar Oct 17 '14 18:10 umeshd

Still not working in Mozilla

irebane avatar Mar 31 '16 18:03 irebane