Skip to content

How to replicate FreeText annots keeping text rotation #3338

Closed Answered by JorjMcKie
izerui asked this question in Q&A
Discussion options

You must be logged in to vote

There are a number of alternatives how rotation of text in a FreeText annot can be achieved.
The only definitive way to find the actual text rotation is by using text extraction in "dict" format. The dict key "dir" in the line dictionary gives you the text orientation.
Use this (consult the documentation!) to compute the rotation angle to use when recreating the annot somewhere else.
In your case, you will find "dir":(0,-1) in the line dctionary.

Replies: 11 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
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
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
Comment options

You must be logged in to vote
0 replies
Answer selected by izerui
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
not a bug not a bug / user error / unable to reproduce
2 participants
Converted from issue

This discussion was converted from issue #3337 on April 03, 2024 16:12.