Hello!
I'm trying to get a PDF with this command: "/usr/bin/wkhtmltopdf --encoding utf-8 --margin-top 20.0 --margin-bottom 20.0 --orientation Portrait --page-size A4 body.html out.pdf". I'm attaching "body.html" to the e-mail, it's very short.
What I get is a bit of text (floating) on the first page and then a blank second page.
If I remove the margin style definition for "p" tag, the blank page vanishes. But I need that definition there. So, I tried to re-set margin of the sole "p" element to 'auto', explicitly set the height of it to '0', but still the blank page appears.
Can somebody understand what is going on, please? If I print this from Chrome, it displays ready-to-print one page, if I print this from Chrome but set to save it as PDF, there too I get two pages.
I'm using wkhtmltopdf 0.9.6.
Thanks!