4

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?

ErwinM
  • 5,051
  • 2
  • 23
  • 35

2 Answers2

8

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.

ErwinM
  • 5,051
  • 2
  • 23
  • 35
0

It worked for me by changing the version to

gem 'wkhtmltopdf-binary', '~> 0.12.3.1'

reference here

Rohit
  • 657
  • 6
  • 25