Skip to content
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

ENH: Accept hierarchical fields #1529

Merged
merged 7 commits into from
Jan 8, 2023

Conversation

pubpub-zz
Copy link
Collaborator

fixes #1468
Add an optional parameter to get_form_text_fields

TBC : behavior with multiple fields with same name create sequence _2, _3, ... does not seem to be applied

Pending : Test to be added

@codecov
Copy link

codecov bot commented Jan 4, 2023

Codecov Report

Base: 91.83% // Head: 91.79% // Decreases project coverage by -0.03% ⚠️

Coverage data is based on head (0e42eca) compared to base (5c0b11d).
Patch coverage: 84.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1529      +/-   ##
==========================================
- Coverage   91.83%   91.79%   -0.04%     
==========================================
  Files          33       33              
  Lines        6073     6093      +20     
  Branches     1193     1200       +7     
==========================================
+ Hits         5577     5593      +16     
- Misses        321      323       +2     
- Partials      175      177       +2     
Impacted Files Coverage Δ
pypdf/_reader.py 90.12% <82.60%> (-0.25%) ⬇️
pypdf/generic/_data_structures.py 89.98% <100.00%> (+0.01%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@MartinThoma MartinThoma added workflow-forms From a users perspective, forms is the affected feature/workflow is-bug From a users perspective, this is a bug - a violation of the expected behavior with a compliant PDF labels Jan 5, 2023
@MartinThoma MartinThoma changed the title ENH : accept hierarchical fields ENH: Accept hierarchical fields Jan 5, 2023
indexed names implemented with . not _ (possible mix up with names
pypdf/_reader.py Outdated Show resolved Hide resolved
@pubpub-zz
Copy link
Collaborator Author

@MartinThoma
is it sufficient for you ?

pypdf/_reader.py Outdated Show resolved Hide resolved
pypdf/_reader.py Outdated Show resolved Hide resolved
@MartinThoma
Copy link
Member

Overall, the PR looks good to me :-) I will have another look tomorrow, but if it's only those minor stylistic things, I can also fix them after merging :-)

Good work @pubpub-zz 👍 🙏

Co-authored-by: Martin Thoma <info@martin-thoma.de>
@MartinThoma MartinThoma merged commit 683c130 into py-pdf:main Jan 8, 2023
MartinThoma added a commit that referenced this pull request Jan 8, 2023
New Features (ENH):
-  Accept hierarchical fields (#1529)

Documentation (DOC):
-  Use google style docstrings (#1534)
-  Fix linked markdown documents (#1537)

Developer Experience (DEV):
-  Update docs config (#1535)

[Full Changelog](3.2.0...3.2.1)
@pubpub-zz pubpub-zz deleted the hierachical_fields branch June 24, 2023 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is-bug From a users perspective, this is a bug - a violation of the expected behavior with a compliant PDF workflow-forms From a users perspective, forms is the affected feature/workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong field names when dot in names
2 participants