Support Article
Table header does not repeat on every page with HTMLToPDF
SA-61349
Summary
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
- Add a correspondence with a grid in it
- Create an activity to call the HTMLToPDF activity with correspondence as stream which prints in PDF
- Call the activity on button click
- 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.
Resolution
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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.