Skip to content

Deleting a widget doesn't remove the object from the fields list, how to remove from the fields list? #2663

Closed Answered by ag-gaphp
ag-gaphp asked this question in Q&A
Discussion options

You must be logged in to vote

I understand they are stored in an array called /Annots per page, but they also have references in another array for the whole document under /Root.

This additional removal is what I needed for the readers/importers that ignore page /Annots list and only look through the document root:
writer._root_object['/AcroForm']['/Fields'].remove(annotation.indirect_reference)

More context on what triggered this issue for me:
MatthiasValvekens/pyHanko#430

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ag-gaphp
Comment options

Answer selected by ag-gaphp
@pubpub-zz
Comment options

@ag-gaphp
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants