How to determine if the text is centered (for example, a title), and how to set the text to be centered using insert_htmlbox? #4199
Answered by JorjMcKie
xiaolibuzai-ovo asked this question in Looking for help
-
| How to determine if the text is centered (for example, a title), and how to set the text to be centered using insert_htmlbox? |
Beta Was this translation helpful? Give feedback.
Answered by JorjMcKie Jan 6, 2025
Replies: 1 comment 2 replies
-
| We cannot detect the alignment of text on input. This information is never present in a PDF. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by JorjMcKie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
We cannot detect the alignment of text on input. This information is never present in a PDF.
On output via
.insert_htmlboxsimply use HTML syntax to achieve this. Refer to e.g. https://developer.mozilla.org/en-US/docs/Web/CSS/text-align.