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

CommentFileSizeAuthor
#3 improve-install-txt-2349177-3.patch1.52 KBjackbravo
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ThuleNB’s picture

Yes, 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).

jvieille’s picture

Actually, 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

jackbravo’s picture

Status: Active » Needs review
FileSize
1.52 KB

Here is a patch to improve a little the documentation.

nithinkolekar’s picture

also http://www.sitepoint.com/effective-pdf-generation-drupal/ has some info about wkhtmltopdf and how to create sym links.

Jelle_S’s picture

I 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?

  • jcnventura committed 4ceb5ac on 7.x-2.x authored by jackbravo
    Issue #2349177 by jackbravo, jcnventura: Improve instructions for...
jcnventura’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.