vandeseer / easytable

Small table drawing library built upon Apache PDFBox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to render cells across a page break instead of splitting the rows between pages

smileatom opened this issue · comments

I have a table with a largish row and on page boundaries it is separated by alot of space from the row above, because the table is splitting on the cell boundaries instead of splitting the actual cell that would draw into the next page. This is resulting in alot of empty space on pages because of this rows typical height.

Anyway to just draw cells into the next page instead of breaking on the row boundary?

Hi @smileatom,

even though I understand your issue I do not have any easier solution than splitting the large cells yourself before building the table to draw. You could – for instance – search for newlines and create a table cell for each part.

The easytable library itself cannot easily handle that for you (pun intended). It's a table drawing library not a layout library. There are quite some difficulties, e.g. see this discussion: #107

So I am open for pull requests but I am not really willing to do this in my free time (nor am I mentally capable of doing it 😉).

Best,
Stefan