Skip to content

Instantly share code, notes, and snippets.

Created May 3, 2018 08:30
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save oanhnn/16d943da191629d6f86d567e52b299e7 to your computer and use it in GitHub Desktop.
Install wkhtmltopdf on AMZ Linux
#!/usr/bin/env bash
yum -y install fontconfig libXrender libXext xorg-x11-fonts-Type1 xorg-x11-fonts-75dpi freetype libpng zlib libjpeg-turbo openssl icu
wget${VERSION}/wkhtmltox-${VERSION}_linux-generic-amd64.tar.xz --dns-timeout=5 --connect-timeout=5
tar -xJf wkhtmltox-${VERSION}_linux-generic-amd64.tar.xz
cp wkhtmltox/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf
cp wkhtmltox/bin/wkhtmltoimage /usr/local/bin/wkhtmltoimage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment