OpenPDF icon indicating copy to clipboard operation
OpenPDF copied to clipboard

Repeat Cell Content on new Page after Page-Break

Open saalmi098 opened this issue 6 years ago • 1 comments

Problem

I have a table that goes over several pages.

When the table splits due to a page-break, I would like to repeat the cell contents of the last cell (on the old page) in the new cell on the next page.

Example

image

Logic with iText

With the iText library this logic is fairly easy to implement because they provide an event which is getting called when the table drawing logic performs a table-split. That means, i can subscribe to the "afterSplitTable" table-event and do my logic (see also iText: afterSplitTable ).

Question

Do you have any idea / tip for me how i can achive this behaviour with OpenPDF? Or is implementing such a table-split-event already planned in the OpenPDF library?

Thanks in advance!

saalmi098 avatar Oct 18 '19 08:10 saalmi098

Pull request are welcome!

asturio avatar Mar 08 '24 19:03 asturio