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

Data in generated PDF does not display in correct format



While generating PDF from a section which includes a Rich Text Editor (RTE), data does not display in the correct format.

Error Messages

Not Applicable

Steps to Reproduce

  1. Create a section with an RTE.
  2. In the post processing of the flow action, invoke the pxCreatePDF out-of-the-box activity to generate the PDF .

Root Cause

When User sets "UseCompactStylesforPdf" parameter as "true" in pxCreatePDF OOTB activity, its picking CSS styles from "pyCompactStylesforPDF".
CSS style "display:inline-block;" in "td .content-item.content-layout.flex.flex-row *" selector provided in "pyCompactStylesforPDF" file is overriding the default display:block and display:list-item styles of ul,ol,p and li elements, which will be embedded dynamically inside RTE.   

When the 'UseCompactStylesforPdf' parameter was set as 'true' in the pxCreatePDF out-of-the-box activity, the CSS styles from the 'pyCompactStylesforPDF' activity were fetched.
The 'display:inline-block;' in 'td .content-item.content-layout.flex.flex-row *' CSS style selector provided in the 'pyCompactStylesforPDF' file overrode the default display:block and display:list-item styles of ulolp and li elements which were embedded dynamically in the RTE.   


Perform the following local-change:

Override the styles for ulolp and li in the RTE.

td .content-item.content-layout.flex.flex-row .rteReadOnlyWithoutTB ul,td .content-item.content-layout.flex.flex-row .rteReadOnlyWithoutTB ol,td .content-item.content-layout.flex.flex-row .rteReadOnlyWithoutTB p {
    display: block;

td .content-item.content-layout.flex.flex-row .rteReadOnlyWithoutTB ul li, td .content-item.content-layout.flex.flex-row .rteReadOnlyWithoutTB ol li {
    display: list-item;
Suggest Edit

Published August 16, 2019 - Updated December 2, 2021

Did you find this content helpful? Yes No

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