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

Quotation mark turning into question mark in generated PDF

SA-5776

Summary



When a PDF is generated from an HTML, all the apostrophes (single quotation marks) displayed as question marks in the generated PDF document. The same HTML content renders correctly in PRPC 6.2. However, after upgrading to Pega 7.1.6 these special characters did not render correctly in the PDF output.

Error Messages



Not Applicable


Steps to Reproduce



1. Put HTML with a right single quote (rsquot) character into an HTML rule.
2. Call the HTMLtoPDF activity, and pass the stream as a parameter.
3. Use Code-Pega-PDF.View to download and view the PDF output.


Root Cause



The root cause of this problem is defect or misconfiguration in the PRPC operating environment. 


Resolution



Specify fonts directory on the application server using pyPDFFontsDirectory parameter of the HTMLtoPDF activity.

Published May 13, 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