Wkhtmltopdf shrinks to page width

I am using wkhtmltopdf version 0.12.1 (I'm on debian-jessie and this is the version I get with apt-get - I can't install anything that I don't get from apt-get).

I have a web page that looks like this:

enter image description here And when converting to PDF, it looks like this:

enter image description here I want the layout to be the same in PDF. I've tried many, many, many different combinations of options using -page-width and -zoom with a number <1, ​​but nothing makes 2 tables and an image on the same line.

Does anyone know how I can get the HTML to shrink to fit the width of the page?

+3
wkhtmltopdf


source to share


No one has answered this question yet

Check out similar questions:

five
wkhtmltopdf - same different output configuration
4
WKHTMLTOPDF Generate PDF first page only
3
Whtmltopdf Table overflow horizontally Automatic pagination
3
What is the Debian url fonts equivalent (required for utf-8 in wkhtmltopdf)?
3
PDF Generation: Fitting a Table to a Page
2
Can't get wkhtmltopdf attributes to work in java code
2
How to create identical page widths in wkhtmltopdf on different computers
1
How do I get wkhtmltopdf to work in Odoo v10 on Debian 9 "Stretch"?
0
wkhtmltopdf: How to install a stretched PDF A4 document?
0
wkhtmltopdf incorrectly displays percentages



All Articles
Loading...
X
Show
Funny
Dev
Pics