Skip to main content

Support Article

Rich Text to PDF Formatting issue



When creating a PDF from Rich Text using the HTMLToPDF activity, an extra new line is appended in every line break.

Error Messages

Not Applicable

Steps to Reproduce

  1. Copy and paste formatted text from an external word document into rich text user-input fields.
  2. Generate a PDF (using HTML to PDF) that utilizes these fields as content.

Root Cause

In a custom activity a custom step was added, after setting the parameter Markup using the step method Property-Set-Stream and passing the section. This step updated Markup parameter and added a <br /> tag before passing it to the HTMLToPDF activity.


Pass parameter Markup directly to HTMLToPDF activity without any modification.
Suggest Edit

Published March 24, 2016 - Updated October 8, 2020

Did you find this content helpful?

Have a question? Get answers now.

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

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

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