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

HTMLtoPDF generates very small fonts in output PDF

SA-11154

Summary



Generated PDF has very small fonts.

Error Messages



Not Applicable

Steps to Reproduce



1. Create TextArea property.
2. Use this property value as input stream to HTMLToPDF activity.
3. Generate the PDF using HTMLToPDF activity.


Root Cause



The root cause of this problem is a defect in user application code/rules. User is using below code in Property control which is causing this issue.

strValue = strValue.replace(" "," "); 


Resolution



This issue is resolved through the following Local-change: 

<% 
String strValue = ""; 

try 
{
strValue = tools.getActive().getStringValue(); 
strValue = strValue.replace("\n","<br>"); 
strValue = strValue.replaceAll("\\s\\s"," &nbsp;"); 
}catch ( Exception ex ) 


%> 
<%= strValue%>

Published June 26, 2015 - 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