linux 安装 wkhtmltopdf
下载地址 https://wkhtmltopdf.org/downloads.html
服务器是centos7
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.centos7.x86_64.rpm
下载有点慢
rpm -ivh wkhtmltox-0.12.6-1.centos7.x86_64.rpm
提示缺少xorg-x11-fonts-75dpi
yum install xorg-x11-fonts-75dpi
中文乱码问题
复制C:\Windows\Fonts\simsun.ttc(宋体)
上传到服务器 /usr/share/fonts/chinese/TrueType/simsun.ttc
------------------------------------
php 安装
https://github.com/mikehaertl/phpwkhtmltopdf
composer require mikehaertl/phpwkhtmltopdf