Skip to content

Perform PageBreak between two rows in the table component #646

Answered by MarcinZiabek
Puge96 asked this question in Q&A
Discussion options

You must be logged in to vote

There are a couple of concepts that could be used.

  1. If the table is used purely as a structural element, you may consider splitting the content into separate sections within the Column element. This allows to manage page breaking by simply adding the PageBreak element to the table.

  2. If keeping the entire content in the table is crucial, you can still follow your idea of inserting a specialized cell with a page break. Just ensure it covers the entire row (so not to disrupt cell ordering). You have accomplished this by inserting as many cells as there are columns. But a more straightforward approach is to use table.Cell().ColumnSpan(2).PageBreak().

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@MarcinZiabek
Comment options

Answer selected by Puge96
@Puge96
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants