vandeseer / easytable

Small table drawing library built upon Apache PDFBox
MIT License
239 stars 91 forks source link

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

Open smileatom opened 3 years ago

smileatom commented 3 years ago

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?

vandeseer commented 3 years ago

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: https://github.com/vandeseer/easytable/issues/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 :wink:).

Best, Stefan