Chinese characters not being exported to pdf.
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.
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.
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.