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"," ");
}catch ( Exception ex )
{
}
%>
<%= strValue%>
Published June 26, 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.