-
From the docs: https://pypdf.readthedocs.io/en/stable/modules/PdfWriter.html#pypdf.PdfWriter.remove_annotations It seems that this method will delete ALL annotations of the provided type from a page. Is it possible to only delete 1 widget on a page using pypdf? |
Beta Was this translation helpful? Give feedback.
Answered by
pubpub-zz
May 21, 2024
Replies: 1 comment 3 replies
-
As far as I am aware, there is no builtin method for this. As a workaround, you might want to have a look at |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For me you should be able to loop through annotations and then delete it:
(should be something like this)