jdpace/PDFKit — Issue #118: command failed: "/usr/local/bin/wkhtmltopdf" Ruby 1.9.2 on Debian Lenny
Author: GustavoMonteiro
Created: 2011-11-23 18:19:53+00:00
State: open

Hi,

We are working on an RoR application that uses wkhtmltopdf. We have 2 instances: one running on a Debian Lenny real machine, that works fine, and the other running on a Debian Lenny VPS.

On the VPS side, we got this error while trying to generate the PDF:

RuntimeError (command failed: "/usr/local/bin/wkhtmltopdf" "--page-size" "Letter" "--margin-top" "0.75in" "--margin-right" "0.75in" "--margin-bottom" "0.75in" "--margin-left" "0.75in" "--encoding" "UTF-8" "--print-media-type" "--orientation" "Landscape" "--quiet" "-" "-"):

The weird thing is: when I manually run this command, I do not get any kind of errors.

BTW, on the real machine it works well.

Some useful information: I installed wkhtmltopdf manually, and I am running ruby 1.9.2 with rails 3.0.9 and PDFKit 0.5.2.