You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to automatically populate/update fields in a PDF but when I call update_page_form_field_values some of the fields in the form are cleared. If I just read the pdf and write it without calling update_page_form_field_values the fields show up when the PDF is rendered. These fields are also cleared if I call writer.set_need_appearances_writer() without calling update_page_form_field_values.
The text was updated successfully, but these errors were encountered:
neversphere
changed the title
Fields deleted when calling update_page_form_field_values
Fields deleted/cleared when calling update_page_form_field_values
Apr 21, 2023
Update docs to use append rather than add_page so that the PDF structure is copied. This ensures the form structure is kept which is necessary for some PDFs.
See #1790Closes#1792Closes#1804
I'm trying to automatically populate/update fields in a PDF but when I call update_page_form_field_values some of the fields in the form are cleared. If I just read the pdf and write it without calling update_page_form_field_values the fields show up when the PDF is rendered. These fields are also cleared if I call writer.set_need_appearances_writer() without calling update_page_form_field_values.
Original PDF: https://drive.google.com/file/d/1QRlVzVmB63xwN-Ybm-sEhyozenCBBn6q/view?usp=sharing
PDF just read and written: https://drive.google.com/file/d/1fJhod2UnneXegunQocR_cPs5TCnekwRh/view?usp=sharing
PDF post update_page_form_field_valuess: https://drive.google.com/file/d/1PutoaB1YLJNfk9_kfuXfRmRQSb7Ka2hp/view?usp=sharing
The following fields are clear after the empty dict is used for the update_page_form_field_values:
21A
21E
32
33
These fields are also cleared if a populated dict is used to update other fields.
Current code to update:
The text was updated successfully, but these errors were encountered: