SebastiaanKlippert / go-wkhtmltopdf

Golang commandline wrapper for wkhtmltopdf
MIT License
1.05k stars 144 forks source link

ubuntu22.4 x86架构 wkhtmltopdf转换后pdf丢失中文 #125

Closed sunny086 closed 1 month ago

sunny086 commented 1 month ago

<!DOCTYPE html>

离职证明

离职证明

兹证明 大猩猩 ,身份证号码:340000202401011234,于 2023-09-08T02:30:33.2024-09-01 ,担任 全资子公司 (公司) PHP开发工程师 (职位)。于 2024-09-01 与我公司正式解除劳动关系。

双方已就劳动关系存续期间的所有问题达成一致,并已一次性结清。同时,我公司已为其办妥离职手续。

离职生效日起:员工仍应按与公司签署的保密、知识产权条款约定,履行相关义务。 员工 不需要 履行竞业限制义务。

特此证明。

公司:全资子公司

日期:2024-09-01

回 执

兹证明 大猩猩 ,身份证号码:340000202401011234,于 2023-09-08T02:30:33.2024-09-01 ,担任 全资子公司 (公司) PHP开发工程师 (职位)。于 2024-09-01 与我公司正式解除劳动关系。

本人已收到 全资子公司 公司 于 2024-09-01 出具的《离职证明》。

签收人:

日期:

sunny086 commented 1 month ago

上面这段是html文件的内容,wkhtmltopdf xx.html test.pdf执行后,pdf的中文缺失 image

sunny086 commented 1 month ago

我在mac本地执行后 image 正常输出

sunny086 commented 1 month ago

请问ubuntu服务器上出现的文字丢失问题,我该如何处理?

sunny086 commented 1 month ago

image 可能问题就是这个吧 我试试中

sunny086 commented 1 month ago

image

sunny086 commented 1 month ago

嚯 done!!