Support Article
PDF does not display few locale specific characters correctly
SA-9844
Summary
HTMLToPDF is used to generate a PDF file. In the output PDF, text containing locale specific characters is shown as junk values.
Error Messages
Not Applicable
Steps to Reproduce
1. Use HTMLToPDF in the activity.
2. Parse the HTML having characters specific to Dutch locale.
Root Cause
The required parameters are not being parsed for HTMLToPDF to work.
Resolution
This issue is resolved through the following Local-change:
1. Ensure that the fonts that are referenced in the HTML that is processed into PDF are available on the server.
2. Before the call to HTMLToPDF, set param.pyPDFFontsDirectory = <location of fonts> (for example, "C:\\Windows\\Fonts").
Published June 12, 2015 - 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.