Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wicked_pdf renders a tiny pdf image

I have added wicked_pdf to my rails app with default options following the readme file (with the deviation being that I installed wkhtmltopdf via the osx installer).

When I render my page with the .pdf?debug=true option, the page looks exactly as it should.

Then when I leave out the debug option, it produces a PDF with a tiny version of the page. Like 1/16 of the size.

I use no options or configuration. Where am I going wrong? Where should I be looking?

like image 422
ErwinM Avatar asked Jan 29 '23 09:01

ErwinM


1 Answers

Solved it by changing the wkhtmltopdf version from 12.4 to an earlier version.

After a lot of googling others have reported a similar bug with version 12.4 on OSX.

Maybe the answer here saves someone else a few hours of googling.

like image 139
ErwinM Avatar answered Jan 31 '23 23:01

ErwinM