0

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

enter image description here

PDF page 1

enter image description here

PDF page 2

enter image description here

PDF page 3

enter image description here

0

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.