Search code examples
wkhtmltopdf

wkhtmltopdf generates tiny output on Mac


I'm running wkhtmltopdf 0.12.4 on Mac OS 10.11.6. When I try to run the basic example "wkhtmltopdf http://google.com google.pdf", though, I'm getting an unusual output. Where I'm expecting something like this:

Expected

(PDF generated directly from Chrome), I'm instead getting this:

enter image description here

It seems odd to me that the default output should be so far off, but I've tried some options as well (including --disable-smart-shrinking) with no luck. Would appreciate any direction you can offer!


Solution

  • I had the same problem, using wkhtmltopdf version 0.12.4 on a Mac installed via homebrew. I uninstalled that and tried version 0.12.3, downloaded from http://wkhtmltopdf.org/, and now I have normal size output.