KeyError: '/Annots' in update_page_form_field_values #1343
Labels
key-error
Could be a bug, but also a robustness issue
workflow-forms
From a users perspective, forms is the affected feature/workflow
I'm filling a PDF file with the update_page_form_field_values method but if the PDF file contains at least one page without a field a KeyError was thrown.
Environment
Which environment were you using when you encountered the problem?
$ python -m platform Linux-5.10.104-linuxkit-x86_64-with-glibc2.31 $ python -c "import PyPDF2;print(PyPDF2.__version__)" 2.10.6
Code + PDF
This is a minimal, complete example that shows the issue:
Traceback
The text was updated successfully, but these errors were encountered: