You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm the author of @ag-media/react-pdf-table, and after much time wrestling with the layout system, I've concluded that there's no way to implement a proper table layout with the current primitives.
Describe the solution you'd like
The solution is not fully thought through, but I think the most essential parts are:
border size/style/color inheritance needs to be fixed (it doesn't seem to be working at all currently)
implement collapsible borders
add a prop to the View component instructing it to move the whole component and all its children onto the next page if it doesn't fit on the current one
One alternative might be to add table primitives and have them be special cases in the layout package.
Describe alternatives you've considered
As of now, @ag-media/react-pdf-table is usable for a table that is contained to one page (we use it in production already), but if you want to wrap a table to multiple pages, it gets weird with no way of fixing it.
The text was updated successfully, but these errors were encountered:
We (@opencollective) would love to migrate to react-pdf, but we need good support for multi-page tables. We would happily use https://github.com/ag-media/react-pdf-table for that, but I agree that native support for tables in this library would be fantastic.
@Betree, thanks for the linked repo; it might be the solution we're searching for if we can somehow reconcile react-pdf's layout with the table implementation. I'll take a more in-depth look in a couple of days.
Is your feature request related to a problem? Please describe.
I'm the author of @ag-media/react-pdf-table, and after much time wrestling with the layout system, I've concluded that there's no way to implement a proper table layout with the current primitives.
Describe the solution you'd like
The solution is not fully thought through, but I think the most essential parts are:
One alternative might be to add table primitives and have them be special cases in the layout package.
Describe alternatives you've considered
As of now, @ag-media/react-pdf-table is usable for a table that is contained to one page (we use it in production already), but if you want to wrap a table to multiple pages, it gets weird with no way of fixing it.
The text was updated successfully, but these errors were encountered: