Support Article
Generated PDF does not support page breaks
SA-27623
Summary
In a flow, when adding a create PDF shape, which references a section with content more than one page, some portions of the page are cut off and appear on the next page.
Error Messages
Not Applicable
Steps to Reproduce
- Include Create PDF shape in a flow.
- Reference a section that will span to more than one page.
- Verify that content is cut off when page splits.
Root Cause
PDF generation in Pega utilizes a third-party library PD4ML. PD4ML provides the option enablesmartbreak to address this problem, but it is not compatible with the Pega API.
Resolution
Perform the following local-change:
Add CSS properties page-break-before: always; or page-break-after: always; to explicitly define where page breaks should take place.
For example:
<DIV style="page-break-after:always"></DIV>
An enhancement request, FDBK-16116, has been created for consideration by Pega Product Management.
Published September 15, 2016 - 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.