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

Table header does not repeat on every page with HTMLToPDF



When a table has more content, while downloading the stream using the HTMLToPDF activity, the content displays in multiple pages, however, the table header does not repeat.

Error Messages

Not Applicable.

Steps to Reproduce

  1. Add a correspondence with a grid in it
  2. Create an activity to call the HTMLToPDF activity with correspondence as stream which prints in PDF
  3. Call the activity on button click
  4. Run the case and click the button

Root Cause

A software use or operation error.

A valid <table> format was not used in the correspondence. Additionally, a parameter to repeat the header in the downloaded PDF was not present in the HTMLToPDF activity.


Perform the following local-change: 

Pass param.pyEnableSmartTableBreaks = true to the out-of-the-box HTMLToPDF activity and the HTML stream with <table> tag.
In case of a custom table, use <th> tag for the header.


Published September 18, 2018 - 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?

Want to help us improve this content?

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
Contact us