Chinese character(¿) is not printed in PDF
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.
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
The users application server does not have the required TTF(true type font) files to display the chinese characters.
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.
0% found this useful