vandeseer / easytable

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

Adding two RepeatedHeaderTableDrawer to one PDF document #144

Open jmizv opened 2 years ago

jmizv commented 2 years ago

Hi! I've checked the test at TableOverSeveralPagesTest and it looks fine. I find that all examples are using only one table in the doc. But what if I want to add/draw more than one table on one document? What's the best approach to not overlap the two tables?

jmizv commented 2 years ago

So I my use case is that I have a front page where I draw three small tables which always fit on that single page. From the second page onward there is a large table that might expand to the next pages. But I fail to get it right.

I helped myself with the PDFMergerUtility and concatenated my two ByteArrayOutputStreams but I hope there's a better way :)