installing chinese character support for wkhtmltopdf on CloudControl

255 Views Asked by At

I have a production/test environment deployed on cloudcontrol that uses wkhtmltopdf in order to create a pdf from an html page. this html page may contains chinese characters though, and in this case once converted these characters simply disappear.

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.

Before I escalate this request to the CC support team, did anyone had the same problem already?

1

There are 1 best solutions below

0
bncc On

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.

Lat note, regarding zenhei I did not copy the .fonts.conf file as well but only the .ttc