Skip to main content

 –

Creating PDF files by using a compact style sheet

Suggest edit Updated on July 21, 2021

When you create a PDF file by using the Create PDF smart shape in a case type or by using the HTMLtoPDF activity, you can use the pyCompactStylesforPDF compact style sheet instead of the style sheet that the application skin uses. Use this style sheet to generate PDF files and also render certain elements that you cannot render when you use the application skin to generate PDF files.

Note: Pega Platform supports only the HTML to PDF conversion. To convert other types of files, implement solutions that involve external libraries.

You can render the following elements when you use the compact style sheet:

  • Collapsible, bar, and field set header types
  • Dynamic layout formats, including default, stacked, inline double grid, inline triple grid, and inline grid quadruple
  • Formatted text
  • Header icons
  • Heading levels 1 through 6
  • Text input

To use the compact style sheet, enable the UseCompactStylesforPDF dynamic system setting by performing the following steps:

  1. In Dev Studio, search for UseCompactStylesforPDF, and then click the result that appears in the dialog box.

  2. On the Settings tab, in the Value field, enter true.

  3. Click Save.

Did you find this content helpful? YesNo

0% found this useful

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.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us