Justify text written with TexWriter's fill_textbox #3522
-
Hello, I'm trying to understand how
Shouldn't the text be justified to fill the rectangle? Otherwise, is there any other way to justify the text or to set the font stretch value? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The last line of text will never be justified to prevent awkward appearances. I suggest you use https://pymupdf.readthedocs.io/en/latest/page.html#Page.insert_htmlbox and employ HTML / CSS syntax to achieve special text effects. |
Beta Was this translation helpful? Give feedback.
-
For examples using your own font with insert_htmlbox see here: https://pymupdf.readthedocs.io/en/latest/recipes-text.html#how-to-specify-your-own-fonts |
Beta Was this translation helpful? Give feedback.
For examples using your own font with insert_htmlbox see here: https://pymupdf.readthedocs.io/en/latest/recipes-text.html#how-to-specify-your-own-fonts