Support Article
PDF field value misaligned when using Repeating Dynamic Layouts
SA-90626
Summary
A repeating dynamic layout is used in a section. This section is used to generate a PDF file using the out-of-the-box HTMLToPDF rule.
In the User Interface (UI), the field values displays below the field name. However, in the generated PDF, the field value displays next to the field name.
Display in the UI:
PDF display:
Error Messages
Not Applicable
Steps to Reproduce
- Create a repeating dynamic layout.
- Use the out-of-the-box HTMLToPDF rule to generate the PDF.
Root Cause
Alignment issue with the PD4ML library.
Resolution
Perform the following local-change:
Add the below style in the pyCompactStylesForPDF.css file and source the file to the HTMLToPDF activity, /* Styles for Label inline Issue **/
.flex.content-inline>.flex.content-item>.field-caption {
text-align: left;
width: 100%;
padding-bottom: 7.0px;
flex: none;
padding-right: 0px;
display: block;
}
/* Styles for Label inline Issue Ends **/
Published March 28, 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.