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

Formatting issue while converting Section to PDF

SA-36626

Summary



User is trying to convert an existing section to PDF.
User is able to render all formatting as that of a section but is not able to render the areas with referenced text boxes.

However, the label and the value are not appearing in a single line in the generated PDF.
Both appear on different lines. But when the user previews the section, the label and the value are shown on the same line.


Error Messages



Not Applicable


Steps to Reproduce

  1. Include a section with just pyLable and Value.
  2. Run the activity to generate PDF by calling the HTMLtoPDF activity by passing the relevant parameters.
    Upon observing the generated PDF and on previewing the section, you see that the alignment is gone.


Root Cause



A defect in Pegasystems’ code or rules

There is an issue with the PD4ml library. The PD4ml library treats the child DIVs as block level elements though the parent is styled with "display:inline-block".

Resolution



Perform the following local-change:

Make all child DIVs (that is, content-item.content-label>.content-inner and .field-item.dataLabelWrite) as "display:inline-block" as shown in the following example:


.content-item.content-label>.content-inner {
display: inline-block;
}​

Published May 16, 2017 - Updated October 8, 2020

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?

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