Centos install

Wget # # RPM - the ivh at https://downloads.wkhtmltopdf.org/0.12/0.12.5/wkhtmltox-0.12.5-1.centos7.x86_64.rpm Wkhtmltox 0.12.5-1. Centos7. X86_64. RPMCopy the code

After the system is installed and updated, the following information is displayed:

error: Failed dependencies: Fontconfig is needed by wkhtmltox-1:0.12.2.1-1.x86_64 Freetype is needed by wkhtmltox-1:0.12.2.1-1.x86_64 libpng is Needed by wkhtmltox-1:0.12.2.1-1.x86_64 libjpeg is needed by wkhtmltox-1:0.12.2.1-1.x86_64 libX11 is needed by Wkhtmltox -1:0.12.2.1-1.x86_64 libXext is needed by wkhtmltox-1:0.12.2.1-1.x86_64 libXrender is needed by Wkhtmlx-1:0.12.2.1-1.x86_64 xorg-x11-fonts-Type1 is needed by wkhtmlx-1:0.12.2.1-1.x86_64 xorg-x11-fonts-75dpi is Men by wkhtmltox - 1-0. The 12.2.1-1. X86_64Copy the code

Here you can directly follow the prompts to install the package

# yum install fontconfig freetype libpng libjpeg libX11 libXext libXrender xorg-x11-fonts-Type1 xorg-x11-fonts-75dpi
Copy the code

Then execute the install command again and the installation will be successful

Centos7.x86_64. RPM # wkhtmltopdf -v # wkhtmltopdf --enable-forms https://www.baidu.com baidu.pdfCopy the code