wrap text when line is too long #2642
Answered
by
JorjMcKie
lbr991
asked this question in
Looking for help
-
I'm using insert_text but the text is too long and it exceeds the page's width, how can I wrap the text? Is there an alternative to having to calculate the wrapping cutoff myself and adding +n pixels to y (for the next line)? |
Beta Was this translation helpful? Give feedback.
Answered by
JorjMcKie
Sep 6, 2023
Replies: 1 comment 3 replies
-
You can use |
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
You do not check the return code of
rc = page.insert_textbox()
. If the text does not fit in the rectangle then rc < 0, and the method is a no-op.