vandeseer / easytable

Small table drawing library built upon Apache PDFBox
MIT License
246 stars 94 forks source link

first 2 or 3 rows for table header #70

Closed vikramtambe closed 4 years ago

vikramtambe commented 4 years ago

Do we have a way to add first 2/3 rows for header. I have requirement where I would like to repeat first 3 rows on each page while drawing table data. please let me know your comments.

vandeseer commented 4 years ago

Well, I hacked together a simple example illustrating the case of three repeated header rows:

I even may change the current implementation of the regular table drawer that repeats header rows to have it configurable and being part of the regular easytable API.

vandeseer commented 4 years ago

The number of rows to repeat can now be set on the RepeatedHeaderTableDrawer (fixed in version 0.6.2).