The html is pretty simple with just an image and an absolutely positioned div. The pdf looks good, the layout is perfect and the resolution too but there's one extra blank page.
I tried these two commands and I get the same result:
wkhtmltopdf --page-width 11 --page-height 8.5 -O Landscape file.html file.pdf
wkhtmltopdf -s Letter -O Landscape file.html file.pdf
How can I get rid of the blank page?
I fixed it by using position: absolute
on the image too. z-index
values work as expected.
Check once more your css for extra div which set the height property .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With