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

Korean characters in work object are not printed properly in pdf

SA-37917

Summary



The Korean characters are not displayed in the PDF.

They are appearing as few special characters instead.

User is using a Utility shape and calls an activity called "generateReport" which includes the "HTMLtoPDF" activity.

Error Messages



Not Applicable


Steps to Reproduce



1. Create an activity that calls "HTMLTOPDF" activity.
2. Run the activity that generates a report that contains "Korean" or any other fonts.


Root Cause



It is observed that along with "ms mincho" font, other required font files should be available to PD4ML library to render unicode characters in PDF.

Resolution

By placing the fonts in the correct server instance, and setting the values of the properties pyPDFFontDirectory, pyPDFEmbedFont, pyPDFPropsDirectory in the activity which calls HTMLtoPDF, the issue gets resolved.

Following are the steps, which need to be followed to address the current issue:

1. Place the font file in temp directory in server instance.
For example: /Users/Documents/Pd4ML/pd4fonts
2. Set the below parameters in parameter page before invoking the HTMLTOPDF activity.
pyPDFFontsDirectory="/Users/Documents/Pd4ML/pd4fonts"
pyPDFEmbedFont=”true”

Note: For more info regarding the font resolution process, refer pd4ml web site or see: http://pd4ml.com/cookbook/pd4ml_pdf_true_type_fonts.htm
Suggest Edit

Published July 18, 2017 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

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