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
have some ideas.
First, I am using wkhtmltopdf stand alone without any of the rails gems
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
wkhtmltopdf from the console, I get good, active links.
I am running production on Ubuntu 10.04 Server. I need whhtmltopdf to
without an X Server (as I have no gui there). The wkhtmltopdf static
is said to have a patched QT that will allow this. However I have not
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
terminal, it does not fire up… just returns me to the prompt - like it
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
some verbose output?
These are the steps I have followed:
Confirmed that the existing (non-static) wkhtmltopdf resides there
that it executes. When I execute it with no args I get the help/about
from the app.
Moved the existing wkhtmltopdf out of the directory (renamed it)
Get the static binary: sudo curl -C - -O http: //
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