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

PDF generated has incorrect format

SA-87331

Summary

Unable to view the text field values entered into the section. The inline grid double checkbox formatted content displays in the stacked format on the PDF file generated.


Error Messages

Not Applicable


Steps to Reproduce

  1. Create a section with text fields and sample content with inline grid double checkbox format in a case
  2. Generate a PDF file using the HTMLToPDF activity in the post processing of the flow


Root Cause



PDF generation inherits the application skin.

Resolution



Perform the following local-change:
  1. Add the below style to the Cascading Style Sheets (CSS) file:
    h1, h2, h3, h4, h5, h6  {
                 color: #000000 !important;
    }
    .dataValueRead {
               color: #000000 !important;
    }

    /* For Inline grid double checkbox */
    .flex.layout-content-inline_grid_double > .flex.content-item.content-field,
    .flex.layout-content-inline_grid_double > .flex.content-item.content-label,
    .flex.layout-content-inline_grid_double > .flex.content-item.content-layout,
    .flex.layout-content-inline_grid_double > .flex.content-item.content-sub_section {
        display: inline-block !important;
        width: 49.9% !important;
        margin: 0.0px 0 7.0px 0px !important;
        padding: 0 7.0px 0 0.0px !important;
        white-space: normal !important;
        vertical-align: top !important;
    }
    /* For Inline grid double */
    .layout-content-inline_grid_double > .content-item.content-field,
    .layout-content-inline_grid_double > .content-item.content-label,
    .layout-content-inline_grid_double > .content-item.content-layout,
    .layout-content-inline_grid_double > .content-item.content-sub_section {
        display: inline-block !important;
        width: 49.9% !important;
        margin: 0.0px 0 7.0px 0px !important;
        padding: 0 7.0px 0 0.0px !important;
        white-space: normal !important;
        vertical-align: top !important;
    }
    /* For Inline grid triple */
    .layout-content-inline_grid_triple > .content-item.content-field,
    .layout-content-inline_grid_triple > .content-item.content-label,
    .layout-content-inline_grid_triple > .content-item.content-layout,
    .layout-content-inline_grid_triple > .content-item.content-sub_section {
        display: inline-block !important;
        width: 33.28% !important;
        margin: 0.0px 0 7.0px 0px !important;
        padding: 0 7.0px 0 0.0px !important;
        white-space: normal !important;
        vertical-align: top !important;
    }
      /* For Inline grid quadruple */
    .layout-content-inline_grid_quadruple > .content-item.content-field,
    .layout-content-inline_grid_quadruple > .content-item.content-label,
    .layout-content-inline_grid_quadruple > .content-item.content-layout,
    .layout-content-inline_grid_quadruple > .content-item.content-sub_section {
        display: inline-block !important;
        width: 24.9% !important;
        margin: 0.0px 0 3.0px 0px !important;
        padding: 0 6.0px 0 0.0px !important;
        white-space: normal !important;
        vertical-align: top !important;
    }
  2. Source the CSS file to the PDF generation process
Suggest Edit

Published March 19, 2020 - 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