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
}
Published October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.