dompdf icon indicating copy to clipboard operation
dompdf copied to clipboard

overflow hidden with an image height bigger than the paper height puts an empty page in front off

Open adares2 opened this issue 11 months ago • 1 comments

My image is to big and dompdf puts an empty page in front off.

<div id="sendhtml" style="height: 1122px; width: 794px; overflow: hidden; position: relative;"><img id="bgPic" src="" style="width: 2685.87px; height: 1786.1px; left: -945.936px; top: -332.052px; display: block; position: relative;"><div class="paper" style="color: rgb(0, 0, 0); margin: 0px; padding: 0px; font-weight: normal; font-style: normal; font-family: normal; position: absolute; left: 0px; top: 0px;"><h1 style="display: block; font-size: 30px; text-align: center; padding: 0px; margin: 0px; color: rgb(255, 255, 255);">headline</h1><div class="innerBox" style="text-align: center; width: 794px;"></div></div></div>

adares2 avatar Mar 31 '24 00:03 adares2

I would expect the image to render on the first full page where the container renders since there is no preceding content.

There may already be an issue related to this, though I didn't find it on a quick search.

bsweeney avatar Apr 01 '24 02:04 bsweeney