-
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
Signed Signature Field gets deleted after update_page_form_field_values() #1790
Comments
This is probably the same problem I had. I think the docs are wrong. Try appending the reader rather than just copying over a page:
I have #1806 out to fix the docs. |
@neversphere Thanks for the reply, I tested your suggestion and the signed signature field and radio buttons stay intact. Seems like there are still issues copying the original structure of the pdf |
I am developing a script to automatically fill out the 'Nr' field in a timesheet form.
The forms are digitally signed before they get a number.
When updating the 'Nr' field using writer.update_page_form_field_values() the signed signature field gets deleted.
Another signature field, which has not been signed at this point, has the expected behaviour.
This happened only when using:
Before I had the issue that all radio buttons were deleted but the signature was not.
This happend when using:
Environment
Which environment were you using when you encountered the problem?
$ python -m platform Windows-10-10.0.19045-SP0 $ python -c "import Pydf2;print(pypdf.__version__)" 3.0.1
Code + PDF
This is a minimal, complete example that shows the issue:
This is the form that is used. I just deleted personal informations from the form:
v2 - unsigned.pdf
This is the signed form:
v2 - signed.pdf
And this is the file after updating the form field:
v2 - after updating.pdf
The text was updated successfully, but these errors were encountered: