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

PDF generated using HTMLtoPDF activity does not have line breaks

SA-68597

Summary



User adds line breaks using the Enter key on a few lines in the Rich Text Editor (RTE) at run time. The PDF that is generated using the out-of-the-box HTMLToPDF activity has the content of  the RTE without the line breaks, which were applied at the run time. 


Error Messages



Not Applicable


Steps to Reproduce

Export the content of RTE to PDF using HTMLToPDF activity.   


Root Cause



The following style in the Cascading Style Sheets (CSS) does not allow PDF to have line breaks.

p {
margin: 0
}

Resolution



Perform the following local-change:
Remove the following style from the CSS:


p {
margin: 0
}

 

 

Suggest Edit

Published October 8, 2020

Did you find this content helpful? Yes No

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

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