Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vertically splittable table #30

Open
atothakisandor opened this issue May 24, 2023 · 7 comments
Open

Vertically splittable table #30

atothakisandor opened this issue May 24, 2023 · 7 comments
Assignees

Comments

@atothakisandor
Copy link

Hello,

is it possible to create a vertically splittable table, so that in the meantime no row gets splitted? In instance, when a row has a column with multiple lines of text, it happens, that the row gets splitted on the two successive pages, which i want to avoid, that is, i'd like to keep the rows "atomic".

Thanks, Alex

@phax phax self-assigned this May 24, 2023
@phax phax added the question label May 24, 2023
phax added a commit that referenced this issue May 24, 2023
@phax
Copy link
Owner

phax commented May 24, 2023

If I understand you correctly that can be achieved, when the row-content itself is not splittable. So if you have a row that is splittable but the content is not, then the content is atomic. I created a small test and this is the outcome:

issue30.pdf

@atothakisandor
Copy link
Author

Hello,

thank you for the sample pdf, this is the part, i'd like to avoid:
image
So that the whole row should reside on either the first or the second page (Right now i came up with a solution, to split up my data, and display it in multiple tables, each on its own page).

Thanks,
Alex

@phax
Copy link
Owner

phax commented May 25, 2023

Look at the PDF. The first page break breaks it nicely - because the content is not splittable. The second page break is what you want to avoid, because the content is vertically splittable. See also the linked code snippet above

@atothakisandor
Copy link
Author

Thanks!

@phax
Copy link
Owner

phax commented May 25, 2023

Is that solution suitable for you, so that we can close the issue?

@atothakisandor
Copy link
Author

Works like a charm, thank you for your efforts again! :)
One more subtle remark: the top border disappears in the continued tables. Do you know why is that?

Copy link

stale bot commented Jan 7, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jan 7, 2024
@phax phax added pinned and removed wontfix labels Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants