-
-
Notifications
You must be signed in to change notification settings - Fork 705
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
Table breaks into different page. #413
Comments
Yes! You can use |
I'm having the opposite issue. The table is being moved to the next page, but I don't want that. I want the table split across pages. Additionally, it seems if the table's content is too large to fit on a single page, the overflow disappears. Adding/Removing the |
@liZe Sorry for the late reply. I will do the test after the Spring Festival. |
I use the html below to test. It works fine. Thank you. <table style="break-inside:avoid-page"><caption>Test</caption><tbody><tr><th>Ac</th><th>Bc</th></tr><tr><td>A1</td><td>B1</td></tr><tr><td>A2</td><td>B2</td></tr><tr><td>A3</td><td>B3</td></tr><tr><td>A4</td><td>B4</td></tr></tbody></table>
<table style="break-inside:avoid-page"><caption>Test</caption><tbody><tr><th>Ac</th><th>Bc</th></tr><tr><td>A1</td><td>B1</td></tr><tr><td>A2</td><td>B2</td></tr><tr><td>A3</td><td>B3</td></tr><tr><td>A4</td><td>B4</td></tr></tbody></table>
<table style="break-inside:avoid-page"><caption>Test</caption><tbody><tr><th>Ac</th><th>Bc</th></tr><tr><td>A1</td><td>B1</td></tr><tr><td>A2</td><td>B2</td></tr><tr><td>A3</td><td>B3</td></tr><tr><td>A4</td><td>B4</td></tr></tbody></table>
<table style="break-inside:avoid-page"><caption>Test</caption><tbody><tr><th>Ac</th><th>Bc</th></tr><tr><td>A1</td><td>B1</td></tr><tr><td>A2</td><td>B2</td></tr><tr><td>A3</td><td>B3</td></tr><tr><td>A4</td><td>B4</td></tr></tbody></table> |
😄! |
I am trying to convert a html with many tables to pdf. If the table is at the end of page, it will be broken into different page. Is there any way to keep the table complete. when there is not enough space for the table, we can move the whole table to the next page instead of break it.
The text was updated successfully, but these errors were encountered: