PDFGen
PDFGen copied to clipboard
How to support Chinese text pdf, how to add fonts
怎么支持中文文本的pdf,怎么自己加入字体
PDFGen only support the fonts builtin to the PDF standard. It currently doesn't support adding custom fonts. The PDF standard fonts really only cover latin characters (see appendix D of https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/pdfreference1.7old.pdf). To support other character sets it would need custom font support added, which has been looked at, but is not really in the works at the moment.
This is really the same as the Unicode issue - https://github.com/AndreRenaud/PDFGen/issues/128