-
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
PDF-Form not editable after filling out text field (after upgrade from 3.9.* to 4.3*) #2780
Comments
Your code in v3.9 is not valid as you are not transfering the Acroform. doing this you are loosing the form /field extraction capabilit The PDF you are using contains an XFA and seems signed. I need more time to understand how this could be handle to prevent the warning reported |
I'm also trying to figure out how to handle forms and signed PDFs to prevent the warning and ensure proper form field extraction. |
Thank you very much for you input @pubpub-zz , maybe the code is not valid / does not use the lib as one should, but - and i just say this to explain why i posted this code - it gave me the results i was trying to get. As i stated the warning is not nessesaryl a big deal but not being able to change the content is a bit of a bummer, because everything else works perfectly fine. |
just for archive: |
document can now be written in incremental |
Last year i wrote a small python program that allows me to fill out a PDF-Form and everything worked as i expected it. After running the program i was able to review the created file and even change the contents. As i only use this program once a year i don't follow all the changes to pypdf closely. When i revisited my small program this year i noticed that several updates to pypdf exists, as i dont like to run outdated software i upgraded to the latest version, updated my code according to the documentation and rerun my program.
The good news first the form gets filled out, but when i open the filled out pdf i get a warning that the "extended features" (see attached screenshot) are no longer available. I could live with that, because it is just annoying, but I'm also not able to edit the contents of the PDF anymore which is a problem.
I've tried with multiple version of pypdf and as far as i know somewhere between 3.9 and 3.11 a change was made that causes this behavior. I've also attached the pdfs created by the different pypdf version:
f5471sm-3.9.1.pdf
f5471sm-4.3.1.pdf
Environment
Code + PDF
For demonstration purposes I've boiled the code down as much as possible.
This is form I'm using: https://www.irs.gov/pub/irs-pdf/f5471sm.pdf
The text was updated successfully, but these errors were encountered: