-
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
Wrong field names when dot in names #1468
Comments
I switched to |
Of course. It's the same software in the end. But in |
@PhunkyBob, |
Thank you. |
Yes you can load the files from the PR |
The result with your
-> it's what I expected! Thank you! Code to reproduce:
|
I checked your PR, and tried it locally, if I use |
@ahmedshabib |
Indexed names are implemented with `.` not `_` (possible mix up with names). An optional parameter `full_qualified_name` was added to get_form_text_fields. Fixes #1468
I would like to retrieve all elements of a PDF form and display for each element it's content.
When I read fields having a "." in its name, the "key" returned is only the last part of the key, and the value is the value of the last element having this (wrong) key.
Environment
Windows 11 (Windows-10-10.0.22623-SP0)
Python 3.10
pypdf 3.2.0 / PyPDF2-2.11.2
Code + PDF
I have a PDF file with the following fields:
fields_with_dots.pdf
I want to get all fields and the corresponding values.
What I expected
What the result is
"customer.name" is identified as "name". "company.name" is also identified as "name".
The value is the latest found in document : "My Company".
--> value for "customer.name" is lost.
The text was updated successfully, but these errors were encountered: