When Chinese annotations entered using FreeText in PDF.js are exported to a PDF file, the PDF, when opened in Edge or Chrome browsers, does not display the Chinese annotations. However, they are displayed normally when opened in a PDF reader client. The content of FreeText in English or numbers is not affected; it seems that only the Chinese content is not supported. Research has found that the issue may be caused by a failure in encoding the FreeText content with the font used in the createNewAppearanceStream method. How can I add support for Chinese language fonts, or how can I improve this?
When Chinese annotations entered using FreeText in PDF.js are exported to a PDF file, the PDF, when opened in Edge or Chrome browsers, does not display the Chinese annotations. However, they are displayed normally when opened in a PDF reader client. The content of FreeText in English or numbers is not affected; it seems that only the Chinese content is not supported. Research has found that the issue may be caused by a failure in encoding the FreeText content with the font used in the createNewAppearanceStream method. How can I add support for Chinese language fonts, or how can I improve this?