Support Article
Generated PDF contains special characters (?)
SA-61444
Summary
On generating a PDF using HTMLToPDF activity, special characters (?) display in the generated PDF. The PDF must be generated in 32 International languages.
Error Messages
Tracer error:
Unable to obtain static content: /opt/font/pd4fontsXXXXXXXXXXXX-abc-XXXXX.properties
Steps to Reproduce
- Load the required TTF files in to the '/opt/fonts' server path.
- Use HTMLToPDF out-of-the-box activity to generate the PDF.
Root Cause
Two threads are initiated to generate the PDF. During the process, if one thread clears the cache, then the PDF generated by the other thread has special characters. This is because, the PD4ML library maintains the cache in static objects. The cache mechanism must be modified such that the cache is maintained to a particular PDF process.
Resolution
Apply HFix-44547.
Published August 24, 2018 - 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.