The readme file doesn't mention how to install wkhtmltopdf, nor does it mention any post-installation steps. I went to the library website and discovered that it's something you install via package or source. I installed wkhtmltopdf using apt and it put the executable in /usr/bin. However, the print module failed to recognize that it was installed. It kept telling me that no PDF tool was installed. I did some searching in the issue board and saw this post: #870058: Better wkhtmltopdf instructions
Step #9 mentioned creating a symbolic link in /sites/all/modules/print/lib to /usr/bin/wkhtmltopdf. The module maintainer said that this step is no longer necessary, but I went ahead and tried it anyways. And voila! After I created this symbolic link, the module immediately recognized the wkhtmltopdf library!
So I think step #9 needs to be added to the readme file?
I'm using Debian Squeeze/Debian Linux 6.0.
apt installed wkhtmltopdf 0.9.9
Comment | File | Size | Author |
---|---|---|---|
#3 | improve-install-txt-2349177-3.patch | 1.52 KB | jackbravo |
Comments
Comment #1
ThuleNB CreditAttribution: ThuleNB commentedYes, the installation guide is outdated. A x server is mentioned although it is not needed anymore. Plus, I read a post of the maintainer where he mentions that a x server isn't necessary anymore but does not see a need sharing this information in the installation guide (5 seconds to update this).
Comment #2
jvieille CreditAttribution: jvieille commentedActually, it seems that wkhtmltopdf only needs the executable.
I downloaded the latest available deb for my box (0.12.2), unpacked it and took the wkhtpltopdf executable that I placed in the Drupal /sites/all/libraries/wkhtmltopdf folder, made it executable for user (my site's user) and group (apache www-data). That's all
Comment #3
jackbravo CreditAttribution: jackbravo commentedHere is a patch to improve a little the documentation.
Comment #4
nithinkolekar CreditAttribution: nithinkolekar commentedalso http://www.sitepoint.com/effective-pdf-generation-drupal/ has some info about wkhtmltopdf and how to create sym links.
Comment #5
Jelle_SI don't get why the symlink is needed. If wkhtmltopdf is in the
$PATH
for you user, why is the unnecessarily complicated step, which is not documented, needed for it to work?Comment #7
jcnventura CreditAttribution: jcnventura at Wunder commented