0
I started using Jspdf, and while my page has little content, everything goes smoothly, but if it is large, the layout distorts, someone knows why?
Follow the image and the code below
let doc = new jsPDF('p','pt','a4');
let options = {
format: 'PNG',
pagesplit: true
}
doc.addHTML($('#draft')[0], 0, 0, options, function(){
doc.output('dataurlnewwindow')
})
Update: I found out it’s because of pagesplit: true
, if I declare as false
, works fine, however, it doesn’t create new pages if the content is large. Someone knows how to solve?