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

Greek Characters not showing in PDF documents

SA-6697

Summary



There is a data table which contains a particular column that has Greek characters in it.
When running the report definition in the data table class, the characters are rendered properly, but "Export to PDF" does not render the Greek characters properly


Error Messages



Error message in Tracer: unable to obtain static content: /smartpaas-app/tomcat/node1/temp/pd4fonts1420002222385.properties

Steps to Reproduce



1.Create a data table and add data (in Greek characters) to a specific attribute
2.Run the report definition contained in the data table class
3.Click on Export to PDF
4.PDF generated, but Greek characters not rendered properly


Root Cause



The root cause of this problem is defect/misconfiguration in the PRPC operating environment. 
Font were not placed in correct folder and hence it was not picked up.

For linux system fonts should be placed in JRE fonts dir. 
/usr/java/jdk1.7.0_71/jre/lib/fonts

After making sure HTMLtoPDF is working fine. Export to excel for Report Definition was not working fine
This was because fonts were not specified in css for Report Definition


Resolution



This issue is resolved through the following local change: 

For linux system,  fonts should be placed in JRE fonts directory. 
Below parameters have to be set for HTMLtoPDF activity and place proper fonts in fonts directory. Also user should have full access to the directory.

Param.pyPDFFontsDirectory :/usr/java/jdk1.7.0_71/jre/lib/fonts
Param.pyPDFEmbedFont : true.

CSS font-family needs to be added to make Report Definition work properly.
Open the rule "workform_pyReportingSkin " and add the below text (CSS rule) into this,

body table td{ font-family: sans-serif !important; }


 

Published January 31, 2016 - 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.

Did you find this content helpful?

Want to help us improve this content?

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