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 character(¿) is not printed in PDF

SA-1064

Summary



When PDF is generated through predefined pega rule- HtmlToPDF (Activity), Then Chinese character(元) is not shown into the PDF. Instead, Question Mark is displayed in place of it.

Error Messages



Question Mark is displayed in place of Chinese character


Steps to Reproduce



Create a sample HTML Stream and pass its name as parameter to/when activity - pyViewAsPDF is run standalone


Root Cause



The users application server does not have the required TTF(true type font) files to display the chinese characters.


Resolution



HTMLToPDF activity is used to generate the PDF file, we have to make sure we pass the fonts directory to pyPDFFontsDirectory parameter while calling HTMLToPDF activity.
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 September 17, 2014 - 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