Skip to content
diegoesp edited this page Aug 25, 2012 · 5 revisions

Here's the general reference: https://github.com/pdfkit/pdfkit/wiki/Installing-WKHTMLTOPDF

Linux

  1. Download the correct build from http://code.google.com/p/wkhtmltopdf/. Remember to check if your linux is x32 or x64 with "uname -a"
  2. Extract the bz2 (tar xjvf) to /usr/local/bin. It is just a binary executable so it makes sense to leave it there.
  3. Ensure that there's an executable in the path called "wkhtmltopdf" because that is what the gem will be looking for. For example, I made a hard link to the extracted file wkhtmltopdf-amd64
  4. Add the pdfkit gem to the gemfile
Clone this wiki locally