Replies: 1 comment 3 replies
-
Thanks for the feedback @resnbl ! To be sure to fully understand, the code that changed FPDF state (col# and y position) was in your custom method overriding |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I had some code which performed well for single column output, but when I implemented
accept_page_break()
for 2-column output it broke in unexpected ways. After some debugging, I traced the cause to the fact that this method may be called duringmulti_cell(split_only=True)
. Sinceaccept_page_break()
changes state (col# and y position), and I was not expecting any changes when "just splitting a string", the my code following the split broke the output.I don't really expect any changes to the package code, but I do think it may be prudent to call out the fact that
multi_cell()
, as well aswill_page_break()
(although this one didn't seem to bother me) will also invokeaccept_page_break()
.Other than that, I am enjoying using this for some personal projects.
Beta Was this translation helpful? Give feedback.
All reactions