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

show table do not across page #2699

Open
timfei opened this issue Feb 29, 2024 · 2 comments
Open

show table do not across page #2699

timfei opened this issue Feb 29, 2024 · 2 comments

Comments

@timfei
Copy link

timfei commented Feb 29, 2024

The table show in two page , is there any possible display the tables on same page?
In this image,the table (orange line ) show in two page, and row two content display is not OK, is any possible let the table do not acoss pages, just show in one page. (my doc table is short , it's ok let table show in one page).
image
I would appreciate it if you could help me :)

@timfei
Copy link
Author

timfei commented Feb 29, 2024

there are many tables in my document. have any way to let table recognize itself will across page then let table show in same page.

@MrSimmmons
Copy link

You would have to include the tables in a stack, then use pageBreakBefore with some custom logic to achieve this
https://pdfmake.github.io/docs/0.1/document-definition-object/page/#dynamically-control-page-breaks-for-instance-to-avoid-orphan-children

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants