wkhtmltopdf and chinese characters

元气小坏坏 提交于 2019-12-01 06:03:42

Did you install the Chinese, Japanese, and Korean Fonts that are mentioned in the Ubuntu Community Help Wiki?

Looking at the PDF generated on another System in detail, you can find out which font is used by wkhtmltopdf on that system and then locate the proper substitute. Dalibror Nasevic did the work for a large subset of asian fonts and described what he had to install on a CentOS (RedHat) based system:

Figuring out missing fonts for wkHTMLtoPDF

On a headless Debian-stretch-based system, according to Dalibror Nasevic I had to add fonts-droid-fallback, fonts-wqy-microhei and fonts-wqy-zenhei

In addition, following the recommendations from the Ubuntu Community Help Wiki, fonts-dejima-mincho, fonts-nanum-coding, fonts-takao, fonts-takao-gothic, fonts-takao-mincho might be worth giving a try.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!