-
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
missing function to repair non-reference fields in corrupted PDF #2453
Comments
Your pdf is not in accordance with standards: It contains some fields that are not child of another field (no parent child) and that are not referenced in pdf Root/Acroform/Fields |
Thank you, I don't know enough about the format to recognize that, but I understand if it is a PDF-specific. Should I close this out? |
I propose you to leave it open but to replace the title with "missing function to repair non refrence fields in corrupter PDF" I have in mind a way to propose a new fixing feature |
Updated the title and description, and I will leave it open. Thank you! |
parse page/document annotations for orphan fields and reattach them to AcroForm/Fields closes py-pdf#2453
Parse page/document annotations for orphan fields and reattach them to AcroForm/Fields Closes #2453
Edit 2/14: Title changed. The issue is the PDF sample included does not have its fields data structured correctly. This issue item is now for the possible addition of handling of this form of corruption
On some PDFs, get_fields and get_form_text_fields both return incomplete data. This only occurs on 1 or 2 PDFs I've encountered out of a couple dozen. In the included example PDF, there are 15 fields but only 8 are returned. There are no errors or trackback I can find.
Environment
Which environment were you using when you encountered the problem?
Code + PDF
This is a minimal, complete example that shows the issue:
PDF from Example:
ExampleForm.pdf
You may add this to your tests.
Traceback
This is the complete traceback I see:
The text was updated successfully, but these errors were encountered: