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

element that css position is absolute or fixed output pdf is empty

Open chapery opened this issue 4 years ago • 2 comments

chapery avatar Mar 11 '21 09:03 chapery

in my case it was it:

https://github.com/niklasvh/html2canvas/issues/1878

okliv avatar Aug 06 '23 12:08 okliv

Same issue, but fixed with this CSS rules on parent div (because we need a position for parent div ro print correctly) :

.parentDiv {
    position: absolute;
}

Gaetanbrl avatar Nov 16 '23 15:11 Gaetanbrl