简体   繁体   English

在CloudControl上为wkhtmltopdf安装中文字符支持

[英]installing chinese character support for wkhtmltopdf on CloudControl

I have a production/test environment deployed on cloudcontrol that uses wkhtmltopdf in order to create a pdf from an html page. 我在cloudcontrol上部署了生产/测试环境,该环境使用wkhtmltopdf以便从html页面创建pdf。 this html page may contains chinese characters though, and in this case once converted these characters simply disappear. 这个html页面可能包含中文字符,在这种情况下,一旦转换,这些字符就会消失。

According to this question I should perform the installation of some fonts packages, but since I don't have a direct console access to Cloudcontrol this solution won't fit for me. 根据这个问题,我应该执行一些字体包的安装,但是由于我没有直接控制台访问Cloudcontrol,因此该解决方案不适合我。

Before I escalate this request to the CC support team, did anyone had the same problem already? 在我将此请求上报给CC支持团队之前,是否有人遇到过同样的问题?

If anyone is interested, I fixed this issue by putting the 2 *.ttc files recommended in this post and extracted from the tar.gz retrieved here (microhei) and here (zenhei) into my git repository in a folder named .fonts/ and including this folder in Gruntfile.js in the same list of the other backend files under copy/dist/files . 如果有人有兴趣,我解决了这个问题,通过将2个*.ttc文件时,建议在这个职位和提取检索的tar.gz 这里(microhei)这里(zenhei)到我的git仓库命名文件夹中的.fonts/和在Gruntfile.js中将此文件夹包括在copy/dist/files下其他后端文件的相同列表中。

Lat note, regarding zenhei I did not copy the .fonts.conf file as well but only the .ttc 注意,关于zenhei,我也没有复制.fonts.conf文件,而仅复制了.ttc

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM