multi_cell triggering page break even though not at the bottom of the page #931
Unanswered
joshua4788
asked this question in
Q&A
Replies: 2 comments
-
Hi @joshua4788 Thank you for reporting this bug.
If you can provide the minimal code it would help debugging this problem. |
Beta Was this translation helpful? Give feedback.
0 replies
-
By the way, I believe your code would be simpler with a table instead of side-by-side multi_cells Take a look on the documentation about tables and check our test files with tables, many of them use multiline. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
Hope this post finds you well.
I have been racking my head to fix this issue but am out of my depths here, so will greatly appreciate it anybody could shed a light.
I have applied auto page break by setting pdf.set_auto_page_break(auto=True, margin=15). My PDF document consists of two columns of multi_cells for which the same x and y positions are set for each row of multi_cells. Multi_cells are populated with values populated from my Python Dash web page.
The auto page break works perfectly fine in some occasions, but in other occasions, page break is triggered consecutively for multiple multi_cells even though they are not reaching the bottom of the page.
For example, my code has the following multi_cells (each pair of multi_cell_left and multi_cell_right forms a row):
If multi_cell_left_2 and multi_cell_right_2 causes an auto page break because they are at the end of the page, multi_cell_left_3 gets printed on the next page (page 2) and multi_cell_right_3 gets printed on the following page (page 3).
This has been driving me crazy, so if there is anyone who has faced this issue before and had a fix, I will greatly appreciate it.
If you need a minimal code, please let me know and I will upload.
Thank you very much.,
Beta Was this translation helpful? Give feedback.
All reactions