node-html-pdf icon indicating copy to clipboard operation
node-html-pdf copied to clipboard

Japenese Character Issue

Open webdevcoderin opened this issue 8 years ago • 5 comments

請求書

Above japenese text is not displaying in pdf:)

webdevcoderin avatar Mar 06 '18 11:03 webdevcoderin

I have the same problem for chinese on EC2 server, any idea for how to fix it?

wayneshang avatar Jul 24 '18 04:07 wayneshang

Our server administrator has installed some missing libraries on linux server

webdevcoderin avatar Jul 27 '18 07:07 webdevcoderin

I have the same issue on an Ubuntu server. I've been reading the various issue threads here but none of them included a full guide of what to do?

So far I've installed a range of Japanese fonts on my server but the PDF still shows up empty. I also tried specifying the font-family in CSS but that didn't seem to do anything.

SachaG avatar Aug 14 '18 04:08 SachaG

Finally I solved my problem by install this:

sudo yum install cjkuni-ukai-fonts

wayneshang avatar Aug 14 '18 19:08 wayneshang

@SachaG on Ubuntu, this fixed it for me: You need to install the proper fonts on your server. For me on Ubuntu it was:

sudo apt-get install language-pack-ja
sudo apt-get install japan*
sudo apt-get install language-pack-zh*
sudo apt-get install chinese*

Gujie-Novade avatar Nov 22 '18 02:11 Gujie-Novade