Support Article
Export to PDF incorrect
SA-32074
Summary
When a report with columns containing text in Hungarian, Welsh, French, or other languages is exported to PDF, some characters are not rendered correctly in the PDF. However, they appear fine in the application.
Error Messages
Not Applicable
Steps to Reproduce
- Run a report definition, which includes data with special characters.
- Export that report to PDF.
Root Cause
When exporting to PDF, the font and its directory, which contains the correct special characters must be passed as a parameter to the pyPDFSettings activity. These parameters where missing in this case.
Resolution
Set pyPDFFontsDirectory and pyPDFEmbedFont parameters in the pyPDFSettings activity with appropriate font directory and font name. Refer the following troubleshooting video for more detailed steps: https://pdn.pega.com/pegatube/support-guide-troubleshooting-cyrillic-script-not-appearing-generated-pdf
Published January 9, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.