I'm using Phantomjs 2.1.1 on ubuntu 16.04 to generate PDF files out of HTML (an NPM package called node-html-pdf
).
My problem is that Chinese charecters do not show up at all in the output PDF, whereas everything else is fine. Locally, on my Mac, the same HTML is generate fine (Chinese is shown fine).
I've tried installing language packages like this:
sudo apt-get install language-pack-zh-hans
sudo apt-get install ttf-arphic-uming
sudo apt-get install ttf-dejavu ttf-wqy-microhei
sudo fc-cache -f -v
Also tried including Content-Type: text/html; charset=utf-8
in the HTML.
Is there anything else I can try ?