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
- Create a section with text fields and sample content with inline grid double checkbox format in a case
- 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:
- 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;
} - Source the CSS file to the PDF generation process
Published March 19, 2020 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.