Support Article

Formatting issue while converting Section to PDF



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


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 April 17, 2017 - Updated May 16, 2017

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.