I am using HTML2PDF version 0.9.3 ( latest suggested ) for a HTML element, which contains couple of DIVs with page-break inside prohibited. The page looks like the first picture below. It seems HTML2PDF uses wrong page size for canvas image - i looks like each page image is a little bit smaller, so the bordered DIVs appear more and more on previous pages ( see the pictures below ). These are my options, I use for HTML2PDF:
var opt = { margin: 1, filename: filter.server + "_profylaxe_" + filter.month.substr(0, 4) + "_" + filter.month.substr(4) + ".pdf", image: { type: 'jpeg', quality: 0.98 }, html2canvas: { scale: 3 }, jsPDF: { unit: 'cm', format: 'A4', orientation: 'portrait' } }; Any idea, how to fix this issue?
HTML page
PDF page 1
PDF page 2
PDF page 3



