Install the dependencies.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
– 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