dmk99 / react-pdf-table

Storybook Available
https://dmk99.github.io/react-pdf-table
MIT License
152 stars 62 forks source link

Question: Is there a was to repeat table header if the table is displayed on more than one page? #11

Closed eightshone closed 4 years ago

eightshone commented 4 years ago

I have the case where a table is split on multiple pages and I couldn't find a way to repeat the header on the needed pages.

dmk99 commented 4 years ago

Right now there is no built-in ability to do that. On a project that I use this for I will usually batch up the rows into a number of pages and then create a function to create the tables in a loop on the separate pages. I generally find 24 rows per page to be a good number, it allows me the ability to have headers and footers on the page as well.

Getting table pagination working nicely is a bit tricky. If there are any suggestions on how it could be achieved I'd be happy to hear it!

eightshone commented 4 years ago

I see, I’ll figure a way out.