Skip to content

Instantly share code, notes, and snippets.

@vishalzanzrukia
Created October 19, 2019 14:14
Show Gist options
  • Save vishalzanzrukia/495ec5cbe9bca33ebf097808520d5c14 to your computer and use it in GitHub Desktop.
Save vishalzanzrukia/495ec5cbe9bca33ebf097808520d5c14 to your computer and use it in GitHub Desktop.
1.
yum install -y libpng
yum install -y libjpeg
yum install -y openssl
yum install -y icu
yum install -y libX11
yum install -y libXext
yum install -y libXrender
yum install -y xorg-x11-fonts-Type1
yum install -y xorg-x11-fonts-75dpi
2.
mkdir /opt/wkhtmltopdf
cd /opt/wkhtmltopdf
3.
curl -L -o wkhtmltopdf.tar.xz https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
4. tar -xf wkhtmltopdf.tar.xz
5. mv wkhtmltox/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf
6. chmod +x /usr/local/bin/wkhtmltopdf
7. Testing
wkhtmltopdf -V
wkhtmltopdf http://www.google.com.ph google.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment