Deprecated HTML Rule

Hi,

In Pega 8.x, HTML rules are deprecated but OOTB api to create PDF still needs HTMLStream and CSS styling through HTML rule. Is there any way to handle this without using HTML rule as its deprecated.

@prashantn5424

In Pega 8.x while HTML rules are deprecated you can still generate PDFs using the OOTB HTMLToPDF activity. To handle CSS styling without relying on HTML rules you can use the pxCompactStylesForPDF.css styles by setting the DSS for useCompactStylesForPDF to true. This approach allows you to include minimal styles for PDF generation. If further customization is needed you can add new styles to the pyCompactStylesForPDF.css rule which will be automatically included when the DSS is set to true.

:warning: This is a GenAI-powered tool. All generated answers require validation against the provided references.

Ask the Expert - Pega and PDFs with Rahul Bojanapally and Sangeeta Kottilinga