This is OT but have not been able to get a response elsewhere (stack overflow and the project site itself) so thought someone here might know or have some ideas.
First, I am using wkhtmltopdf stand alone without any of the rails gems as I found that for some reason using WickedPdf or PdfKit my pdf’s did not generate with active links from the links from those in the html. When I run wkhtmltopdf from the console, I get good, active links.
I am running production on Ubuntu 10.04 Server. I need whhtmltopdf to work without an X Server (as I have no gui there). The wkhtmltopdf static binary is said to have a patched QT that will allow this. However I have not been able to get the static binary to work. These are the results the steps I took to install:
Result: Once installed (see steps below), when I execute wkhtmltopdf in the terminal, it does not fire up… just returns me to the prompt - like it ran and did something, but with no error but no output:
Same behavior if I put args:
:/usr/bin$ wkhtmltopdf http://www.google.com test.pdf
Am I doing something wrong — my understanding that the static binary should just fire up. Perhaps missing some dependency? Is there a way to get some verbose output?
These are the steps I have followed:
Confirmed that the existing (non-static) wkhtmltopdf resides there and that it executes. When I execute it with no args I get the help/about output from the app.
Moved the existing wkhtmltopdf out of the directory (renamed it)
Get the static binary: sudo curl -C - -O http: //wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-i386.tar.bz2
Untar: tar xvjf wkhtmltopdf-0.9.9-static-i386.tar.bz2
Rename: mv wkhtmltopdf-i386 wkthtmltopdf
Get (apparently) necessary packages: sudo apt-get install openssl build-essential xorg libssl-dev