How can I install wkhtmltopdf 0.12.3?

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?

1

2 Answers

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.

7

The wkhtmltopdf binary is found in the bin/ directory ("bin" stands for binaries). Therefore, to run it in the terminal, cd to bin/ and run ./wkhtmltopdf with appropriate arguments.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like