Installing wkhtmltopdf

Discover our Public Cloud offer

Shared Hosting for Everyone, imagined by developers, for developers.

Discovering the Public Cloud

wkhtmltopdf provides two tools from the command line for returning HTML in PDF and image formats.

In our example, we use the SSH access and consider the following information:

  • Account name: foo

  • wkhtmltopdf directory: $HOME/wkhtmltopdf/

    foo@ssh:~/wkhtmltopdf$ wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.jessie_amd64.deb
    foo@ssh:~/wkhtmltopdf$ dpkg -x wkhtmltox_0.12.5-1.jessie_amd64.deb .
    
    foo@ssh:~/wkhtmltopdf$ wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_amd64.deb
    foo@ssh:~/wkhtmltopdf$ dpkg -x wkhtmltox_0.12.6-1.buster_amd64.deb .
    

Binary files will be available in the $HOME/wkhtmltopdf/usr/local/bin/ directory.

Take the last stable version available.