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 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

  1. Create a repeating dynamic layout.
  2. 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

Was this useful?

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.

Did you find this content helpful?

Want to help us improve this content?

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