Skip to content
Discussion options

You must be logged in to vote

What do you mean by dataframe? Pandas?
Whatever:
A textmarker annot does not by itself know anything about what it "marks". Its rectangle may happen to overlay text, but it could also be an image, drawing ... or nothing.
So you first have to determine what (text) the annot rect is wrapping. [Let's forget for the moment, that that text may be deleted or changed (via redactions) wihout the textmarker annot realizing this.]
Then you need some unique identifier for the annot. This must / should be a combination of its /NM key and the page ... number? Next problem: the page number may also change, if someone adds / deletes / rearranges pages.

If all this is not your concern, you can add that a…

Replies: 1 comment

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
Labels
None yet
2 participants