Rocky Linux 安装 wkhtmltopdf 和 wkhtmltoimage
一、安装依赖
yum install -y xorg-x11-fonts-75dpi
yum install -y xorg-x11-fonts-Type1
二、安装
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.centos8.x86_64.rpm
rpm -Uvh wkhtmltox-0.12.6-1.centos8.x86_64.rpm
三、测试
/usr/local/bin/wkhtmltopdf --version
/usr/local/bin/wkhtmltoimage --version
原文链接:https://www.jianshu.com/p/253e8f0f7566