Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Chinese characters not being exported to pdf.

SA-5473

Summary



Chinese characters not being exported to pdf.Being printed as unrecognizable characters.

Steps to Reproduce



1)Put some chinese characters in text areas in the screen.
2)Do a export to pdf.


Root Cause



Customer do not have the necessary ttf(True type font) files on the server that’s why they are getting this issue. In general pd4ml will not have all character sets in its jar file, so here we need to make use of the fonts from the Operating System.
HTMLToPDF activity is being used to generate the PDF file, we have to make sure we pass the fonts directory to pyPDFFontsDirectory parameter while calling HTMLToPDF activity.


Resolution



Steps to be followed to resolve the Chinese character display issue while generating the PDF:


We need to follow the below steps from the PRPC side to achieve this.
1. Make sure "pyPDFFontsDirectory" is set to point to a directory on the PRPC server where the fonts are located: On Windows using 'C:\WINDOWS\FONTS' generally works. 
2. Pass pyEmbedFont parameter of HTMLtoPDF activity as true.
4. Make sure server has access to that fonts directory.
3. While exporting any LV or Report to PDF, make sure you to update the “pyPDFFontsDirectory” parameter in RULE-OBJ-DEFINITION PYPDFSETTING activity.

Published January 31, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us