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

Incorrect styling for PDF generated




Incorrect styling for PDF generated.

Error Messages


Not Applicable


Steps to Reproduce


Use 'Create PDF' smartshape in the flow to generate PDF.

Root Cause

A third-party product issue. All the styling options available in the skin were not supported due to the inherent limitations of the PD4ML library that was used for the PDF generation. UseCompactStylesforPDF Dynamic System Setting (DSS) replaced the Cascading Style Sheets (css) in skin with a lightweight CSS (available as pyCompactStylesforPDF text rule which can be further customized). This was the way to get minimal PDFs when those generated by using skin CSS became unusable.


Perform the following local-change: 
Customzie pyCompactStylesforPDF to style the PDF as per the requirement. 



Published April 5, 2019 - Updated December 2, 2021

Was this useful?

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.

Did you find this content helpful?

Want to help us improve this content?

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