manuels / hpdf.js

Create PDFs in your browser or nodejs (javascript port of libharu)
http://manuels.github.com/hpdf.js/
zlib License
184 stars 30 forks source link

About Chinese Character Encoding #2

Open xfwhwh opened 11 years ago

xfwhwh commented 11 years ago

This is a great ware that can generate PDF with multi-language in HTML application, and the demo has demonstrated that it can handle the Japanese Character well. However, I have found that the useCNSEncodings() as defined in libharu does not work. It will really help to generate the PDF with Chinese Charcters. It seems that this function is not re-define in the hpdf.js, how can I added this into the hpdf.js? Thank you : )

manuels commented 11 years ago

Hi,

yes, I forgot this method. you can add it just in the same way that UseJPEncodings is defined: https://github.com/manuels/hpdf.js/blob/master/post.coffee#L565

then recompile it.

Another option would be using texlive.js: https://github.com/manuels/texlive.js/

Merg1255 commented 10 years ago

@manuels Can you please update hpdf.js library so that it has full utf8 support? That would make it easier to use for all languages pdf.