Skip to content

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

Discussion options

You must be logged in to vote

We cannot detect the alignment of text on input. This information is never present in a PDF.
On output via .insert_htmlbox simply use HTML syntax to achieve this. Refer to e.g. https://developer.mozilla.org/en-US/docs/Web/CSS/text-align.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JorjMcKie
Comment options

@xiaolibuzai-ovo
Comment options

Answer selected by JorjMcKie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants