Skip to content

Extract text from annotation in certain area/rectangle? #1539

Discussion options

You must be logged in to vote

Yes, that should be possible.

  1. Each annot has a rect wihich denotes its position on the page. Use it to subselect the annots that are in the red rectangle.
  2. For the selected annots, use their inbuilt get_text() method - presumably they are FreeText annots in your case.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jiezhoujenny
Comment options

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