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

PDF generating junk(?) characters

SA-49815

Summary



User have a requirement to generate PDF with 31 international languages.

User loaded all related ttf font files loaded into server path "/opt/fonts". User is able to generate PDF for languages except for below:

  • Cambodian
  • Amharic
  • Gujarati
  • Laotian
  • Punjabi

Error Messages



Generated PDF with languages (Cambodian,Amharic,Gujarati,Laotian,Punjabi) as junk(?) characters.


Steps to Reproduce



1. Create directory path /opt/fonts
2. Load the provided ttf fonts files into /opt/fonts location
3. Run the PD4ML jar file
4. Execute the below command - This result generate a properties file in /opt/fonts path
java -jar pd4ml.jar -configure.fonts /opt/fonts
5. Provide all permission to access the /opt/fonts path from the application to generate PDF through PD4ML custom java code.
6. Try to make those international languages as a PDF.


Root Cause



Languages with more complex character encodings are incompatible with UTF-8 encoding.

Resolution



Change the encoding to UTF-8 and display the character correctly.

Refer more about changing the charater encoding in pdml4 jar in the following website:

http://pd4ml.com/api/index-all.html

Published April 10, 2018 - 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.

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