Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

  1. Include Create PDF shape in a flow.
  2. Reference a section that will span to more than one page.
  3. 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

Was this useful?

100% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice