Skip to content

Instantly share code, notes, and snippets.

@marcomontes
Last active October 8, 2016 04:39
Show Gist options
  • Save marcomontes/75aebbde882c71f866ef05045edff732 to your computer and use it in GitHub Desktop.
Save marcomontes/75aebbde882c71f866ef05045edff732 to your computer and use it in GitHub Desktop.
Fixed removing system installed wkhtmltopdf and using the binary of wkhtmltopdf (Ubuntu 12.04)taken from : http://stackoverflow.com/questions/9672070/wicked-pdf-on-production-server/9687535#9687535

Uninstall the wkhtmltopdf package:

apt-get remove wkhtmltopdf --purge

cd /usr/local/bin
sudo curl -C - -O http://download.gna.org/wkhtmltopdf/obsolete/linux/wkhtmltopdf-0.9.9-static-amd64.tar.bz2
sudo tar -xvjf wkhtmltopdf-0.9.9-static-amd64.tar.bz2
rm wkhtmltopdf-0.9.9-static-amd64.tar.bz2
ln -s wkhtmltopdf-amd64 wkhtmltopdf

In your initializer

WickedPdf.config = { :exe_path => "/usr/local/bin/wkhtmltopdf" }
@marcomontes
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment