Ubuntu – How to install wkhtmltopdf 0.12.3

wkhtmltopdf

I don't have a clue about how to install the latest stable version of wkhtmltopdf. When I download and uncompress the tar.xz I get four folders:

  • lib
  • bin
  • include
  • share

What should I do with this files?

Best Answer

You can install it without that files, just open terminal and run:

sudo apt-get install wkhtmltopdf

Then use it from the command line like:

wkhtmltopdf example.org
wkhtmltoimage example.org

Or you can copy the files you've downloaded to /usr folder using your window manager or running sudo mv * /usr from in the directory you uncompressed the tar.xz file.


Or you can run the file from where you extracted them using:

chmod -R u+x /extracted/path
./extracted/path/bin/wkhtmltopdf <arguments>

Cheers.