0

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?

MikeVelazco
  • 103
  • 1
  • 4

2 Answers2

1

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.

razorx
  • 441
0

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.

edwinksl
  • 24,109