html2pdf.js icon indicating copy to clipboard operation
html2pdf.js copied to clipboard

Fix pagebreaks bug while first line clientRect.top less than 0

Open NKnife opened this issue 6 years ago • 1 comments

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>
  ...

NKnife avatar Aug 13 '20 04:08 NKnife

I encounter a problem that img or text content is truncated. how to solve pagination truncated problem in html2pdf.js?

Remote-version-git avatar Jun 04 '21 01:06 Remote-version-git