New textbox insertion based on Story class #2843
JorjMcKie
started this conversation in
Announcements
Replies: 1 comment
-
Created via: page.insert_htmlbox(clip, html, rotate=90) and the following html text: |
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
-
We are in the process of developing a new page method
page.insert_htmlbox()
which behaves very similar topage.insert_textbox()
and friends.It internally uses the genius PyMuPDF
Story
class (actually MuPDF), but frees the developer from all the technical details.With this method you will have the following features:
page.insert_htmlbox(rect, text, <more parameter>)
like you would invokepage.insert_textbox()
.<b>
or<i>
, including inline styling (e.g. for text colors, or using somefont-family
and more).page.insert_textbox()
, or request to decrease the font size until there is a fit.While we cannot make it for the release due in week starting 2023-11-27, we do hope to publish it in the release thereafter.
Stay tuned.
Beta Was this translation helpful? Give feedback.
All reactions