Remove same nearby text annotation #1039
Answered
by
JorjMcKie
rishkum
asked this question in
Looking for help
-
Beta Was this translation helpful? Give feedback.
Answered by
JorjMcKie
Apr 30, 2021
Replies: 1 comment
-
You certainly can remove annotations - via |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
JorjMcKie
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You certainly can remove annotations - via
Page.delete_annot(annot)
.So you only have to identify the right annotation for this, that's it.
Do this by checking / comparing the annotation rectangle or other properties like the text content.
Loop through a page's annotations via tha iterator
page.annots()
. Here you can also subselect the desired annotation type.