Skip to content

pyHanko detects field widgets that have been previously deleted, but other toolkits do not #430

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

You must be logged in to vote

The best I can gather is that this is an unfortunate side effect of viewers and importers not being uniform in how they parse the PDF.

pyHanko and the eSign platforms use the main widget list in the PDF catalog, while a lot of viewers will use only the /Annots list and ignore anything else.

PyMuPDF maintainer has an ehancement request open to also remove the object from the main list in the PDF catalog, and pypdf doesn't have a built-in function to remove a single widget at the moment, so I'm still sorting out how to remove things from the main list with it.

Any way, I think my problem is solved and it ultimately points back to the toolkits that are removing the fields leaving behind some…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@ag-gaphp
Comment options

Comment options

You must be logged in to vote
2 replies
@MatthiasValvekens
Comment options

@ag-gaphp
Comment options

Answer selected by ag-gaphp
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