Issue
In Pega Platform™ ‘25.1.3, certificate correspondence PDFs that use the pd4ml:footnote noref="true" tag to render a signature block or footer may render that content on page 2 instead of at the bottom of page 1. The same correspondence rules produce the correct output in Pega Platform ‘25.1.1.
Symptoms and Impact
After updating from Pega Platform '25.1.1 to 25.1.3, certificate correspondence PDFs generated through the HTMLToPDF activity produce an incorrect layout when the HTML markup places a pd4ml:footnote noref="true" block immediately before a pd4ml:page.break/ tag.
Affected PDFs show the following symptoms:
- The signature block, designation details, "Date of Issue", "Initial Issue", and "Issue No." fields are displaced to page 2.
- When multiple pages each define a footnote, both footnotes are rendered together on page 2 rather than on their respective pages.
- The overall certificate layout does not match the output produced in Pega Platform '25.1.1
Correspondence rules, data, fonts, images, and correspondence fragments (Rule-Corr-Fragment) referenced via pega:include inside the footnote block are unchanged and produce the correct output on '25.1.1.
Steps to Reproduce
-
Open an application on Pega Platform '25.1.3 that generates certificate correspondences.
-
Open a correspondence rule that includes a footer structured as follows — a pd4ml:footnote noref="true" block placed immediately before a pd4ml:page.break/ tag, with the footnote containing a pega:include reference to a Rule-Corr-Fragment:
-
<pd4ml:footnote noref="true"> <!-- signature block / footer content --> <pega:include name="DigitalSignature.Mail" type="Rule-Corr-Fragment" /> </pd4ml:footnote> <pd4ml:page.break/>
-
-
Trigger correspondence generation to produce a certificate PDF.
-
Open the generated PDF and review the page layout.
a. Result: The signature block, designation details, "Date of Issue", "Initial Issue", and "Issue No." are displayed on page 2. The first page does not contain the expected footer content. The layout does not match the Pega Platform '25.1.1 output.
b. Expected : The signature block and issue details are displayed at the bottom of page 1, matching the Pega Platform '25.1.1 output.
Root Cause
The issue is caused by a pagination-handling change in the PD4ML library version bundled with Pega Platform '25.1.3. When a </pd4ml:footnote> closing tag is immediately followed by an explicit <pd4ml:page.break/> tag, the PD4ML rendering engine does not finalize the footnote boundary before processing the page break. The footnote content intended for page 1 is carried forward and rendered on the subsequent page. When that page also defines a footnote, both footnotes are rendered together.
PD4ML support has confirmed this as a footnote pagination defect, with a fix available in later PD4ML builds.
Solution
This behavior is a known defect in the PD4ML library version 4.0.23 and is planned to be addressed in PD4ML 4.0.24 or later.
A future Pega Platform release will include the updated PD4ML library. The specific release version has not yet been determined. This article will be updated with release details when the fix becomes available in a GA release.
Local Change (Workaround)
Insert a non-empty paragraph element between the </pd4ml:footnote> closing tag and the <pd4ml:page.break/> tag in each affected correspondence rule.
Before:
</pd4ml:footnote> <pd4ml:page.break/>
After:
</pd4ml:footnote> <p> </p> <pd4ml:page.break/>
The <p> </p> element introduces a renderable node into the normal HTML flow before the explicit page break. This gives the PD4ML layout engine a boundary at which to finalize and place the preceding footnote on its intended page before advancing to the next page.
Apply this change to every correspondence rule that uses pd4ml:footnote noref="true" immediately before a pd4ml:page.break/ tag. Validate the generated PDF output after each change.
See PD4ML versions and hotfixes and Enhancements and resolved issues with update impact.
References
Enhancements and resolved issues with update impact.
Problem with page.break ifSpaceBelowLessThan and pd4ml:footnote Placement