Reputation: 94131
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?
Upvotes: 6
Views: 8700
Reputation: 1017
I had the same probleme and fixed it by removing the style "display:table" on the style of a div (the main container div).
Upvotes: 0
Reputation: 7978
Check once more your css for extra div which set the height property .
Upvotes: 2
Reputation: 94131
I fixed it by using position: absolute
on the image too. z-index
values work as expected.
Upvotes: 5