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.
The below commands fixed the issue for me
Make sure to remove below two packages first for the clean installations
yum remove -y wkhtmltopdf
yum remove -y wkhtmltox
And then execute below two commands
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.centos7.x86_64.rpm
yum localinstall wkhtmltox-0.12.6-1.centos7.x86_64.rpm
Verify
wkhtmltopdf --version