Linux安装wkhtmltopdf
2018-09-05 本文已影响0人
爱的旋转体
1.wkhtmltopdf官网(https://wkhtmltopdf.org/downloads.html)下载安装包;

2.上传到linux服务器;
3.解压:
Ubuntu:dpkg -i wkhtmltox_0.12.5-1.trusty_amd64.deb;
Centos:rpm -ivh wkhtmltox-0.12.5-1.centos7.x86_64.rpm;
4.配置环境变量或将bin下的wkhtmltopdf复制到/usr/bin下;
5.中文:将windows上的字体simsun.ttc复制到liunx的/usr/local/share/fonts/chinese/TrueType/目录下。