Support Article

PDF for generated letter has one list number in bold



The user is generating correspondence letters in PDF, using HTML <ol>, <li> to generate numbered lists. In one of the lists, a number appears in a bold font.

Error Messages

Not Applicable

Steps to Reproduce

Create an activity to process the developer's generated HTML through activity HTMLToPDF

Root Cause

The user is implementing a HTML <strong> tag for parts of the content, particularly for <pega:reference> inserts. In the case where the problem is showing, they have the following construct, with the <pega:reference> tag surrounded by a <strong> tag, with the closing </strong> tag followed immediately by a comma, i.e.:

If you remove the comma, the problem goes away (list number for this list item is no longer in bold).

The PD4ML third party package that is being used to generate the PDF from the HTML appears to have problems with the '&nbsp;' token. Removing the occurrence of these tokens causes the problem to go away.


Remove all occurrences of the '&nbsp;' token from the markup.

Published July 12, 2016 - Updated July 23, 2016

Have a question? Get answers now.

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