Cannot update a form field with weird/special attributes. #2512
Labels
PdfWriter
The PdfWriter component is affected
workflow-forms
From a users perspective, forms is the affected feature/workflow
I tried to update a simple PDF form, but one field has some odd attributes, i.e.,
"/Ff": 0, "/Kids": [IndirectObject(10, 0, 4353225744)]
, that caused this error,KeyError: '/AP'
.Environment
Which environment were you using when you encountered the problem?
Code + PDF
This is a minimal, complete example that shows the issue:
Simple-form.pdf
Traceback
This is the complete traceback I see:
This seems related to #2234, exact traceback at least.
I ended up deleting the field and recreating it, and the
/Ff
and/Kids
dict keys were absent, and the script above worked.The text was updated successfully, but these errors were encountered: