1. 环境: centos7,python36

2. 官网下载:https://wkhtmltopdf.org/downloads.html

wkhtmltopdf

下载后进行安装

3.

pip install pdfkit

pip install wkhtmltopdf

4.中文问题:中文为空白或者方框

将Windows: C:\Windows\Fonts目录下的宋体SIMSUN.TTC(注意宋体:后缀是ttc不是ttf),复制到Linux系统/usr/share/fonts目录下,即可生成中文

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-16
  • 2021-08-08
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-18
  • 2022-02-14
  • 2021-09-05
  • 2021-04-20
  • 2022-01-19
  • 2021-09-20
  • 2021-08-06
相关资源
相似解决方案