Skip to content
Discussion options

You must be logged in to vote

I am using a separate text insertion step with the text rect being the same size of that of the original area, but my new text may not be the same pixel width/height. In the case where it is not exactly the same (i.e. the new text does not entirely fill up the area that the old text occupied), I would like to match the alignment of the previous text. If the original text is center justified I should provide align=1 when inserting the textbox and so on - but I am not seeing any way to obtain that data, though the specification seems to imply that it may exist.

It is not possible to find out a text's original alignment - sorry. Even the PDF spec does not have this concept, at least not in…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by JorjMcKie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement wontfix no intention to resolve
2 participants
Converted from issue

This discussion was converted from issue #2244 on February 25, 2023 16:45.