Skip to content

Instantly share code, notes, and snippets.

@SaitejaP
Forked from isogram/wkhtmltopdf_wkhtmltoimage.md
Created November 16, 2017 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SaitejaP/7ff2076b9f3b62f2a4e64c073bd7b8f3 to your computer and use it in GitHub Desktop.
Save SaitejaP/7ff2076b9f3b62f2a4e64c073bd7b8f3 to your computer and use it in GitHub Desktop.
How to manually install Wktohtmlpdf and Wkhtmltoimage in Ubuntu Server

How to Install Wkhtmltopdf and Wkhtmltoimage in Ubuntu

#!/bin/sh

sudo apt-get install -y openssl build-essential xorg libssl-dev
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar xf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
cd wkhtmltox/bin/
mv wkhtmltopdf  /usr/bin/wkhtmltopdf
mv wkhtmltoimage  /usr/bin/wkhtmltoimage
sudo chown root:root /usr/bin/wkhtmltopdf
rm wkhtmltox-0.12.4_linux-generic-amd64.tar.xz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment