html2pdf.js
html2pdf.js copied to clipboard
Fix pagebreaks bug while first line clientRect.top less than 0
If mode include "avoid-all", and first line clientRect.top less than 0, pagebreaks.js will create full page div, make first page empty
test case
// pagebreaks.html
...
<div id="root">
<p style='margin-top: -10px'>First line</p>
...
I encounter a problem that img or text content is truncated. how to solve pagination truncated problem in html2pdf.js?