yum install fontconfig libXrender libXext xorg-x11-fonts-Type1 xorg-x11-fonts-75dpi freetype libpng zlib libjpeg-turbo
rpm -Uvh wkhtmltox-0.12.2.1_linux-centos7-amd64.rpm
wkhtmltopdf http://www.google.com google.pdf
Allow apache to exicute an external program through SELinux.
To automatically install all the needed dependencies of
wkhtmltopdf
it's better to use the defaultyum
package manager like that:yum localinstall <package>.rpm
, example:yum localinstall wkhtmltox-0.12.6-1.centos7.x86_64.rpm