Skip to content

Instantly share code, notes, and snippets.

@rothkj1022
Last active April 10, 2019 17:38
Show Gist options
  • Save rothkj1022/94a75cff142115b7893984d001227f6a to your computer and use it in GitHub Desktop.
Save rothkj1022/94a75cff142115b7893984d001227f6a to your computer and use it in GitHub Desktop.
Procedure for installing and testing wkhtmltopdf on CentOS 7

Install wkhtmltopdf on CentOS 7

Download

$ wget https://downloads.wkhtmltopdf.org/0.12/0.12.5/wkhtmltox-0.12.5-1.centos7.x86_64.rpm

Install

$ yum install wkhtmltox-0.12.5-1.centos7.x86_64.rpm

Make sure /usr/local/bin is in $PATH

$ echo $PATH

if not, add it to your .bash_profile

PATH=$PATH:$HOME/bin:/usr/local/bin

Test

$ wkhtmltopdf http://www.google.com google.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment