-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fields deleted/cleared when calling update_page_form_field_values #1804
Comments
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
This was a documentation error. Updated with #1806 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: