Install the dependencies.
– yum install xorg-x11-fonts-75dpi xorg-x11-fonts-Type1 | |
– yum install libpng | |
– yum install libjpeg | |
– yum install openssl | |
– yum install icu | |
– yum install libX11 | |
– yum install libXext | |
– yum install libXrender | |
– yum install xorg-x11-fonts-Type1 | |
– yum install xorg-x11-fonts-75dpi |
Download and install the package
Download the latest package from wkhtmltopdf website.
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox-0.12.5-1.centos7.x86_64.rpm
rpm -ivh wkhtmltox-0.12.5-1.centos7.x86_64.rpm