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
- Include a section with just pyLable and Value.
- 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.