ENH: Add code to extract XML form data from Adobe ES4 PDF forms#408
ENH: Add code to extract XML form data from Adobe ES4 PDF forms#408georgealverson wants to merge 4 commits intopy-pdf:mainfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## main #408 +/- ##
==========================================
- Coverage 69.57% 69.40% -0.17%
==========================================
Files 9 9
Lines 3316 3324 +8
Branches 783 786 +3
==========================================
Hits 2307 2307
- Misses 766 774 +8
Partials 243 243
Continue to review full report at Codecov.
|
|
@georgealverson Do you have an example PDF which we could use in the unit tests? |
|
Dear Martin,
Attached is a PDF file using XFA. Below is a screenshot of the XFA content.
Best regards,
George
***@***.***
From: Martin Thoma ***@***.***>
Sent: Saturday, April 16, 2022 6:25 AM
To: py-pdf/PyPDF2 ***@***.***>
Cc: George Alverson ***@***.***>; Mention ***@***.***>
Subject: Re: [py-pdf/PyPDF2] Add code to extract XML form data from Adobe ES4 PDF forms (#408)
@georgealverson<https://github.com/georgealverson> Do you have an example PDF which we could use in the unit tests?
—
Reply to this email directly, view it on GitHub<#408 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABGEONFFKUG5EJVDIQSJG7DVFKIQRANCNFSM4EWCPOQA>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
|
Please either send it to info@martin-thoma.de or upload it directly on github. I cannot see an attachment here. I guess github filters it |
|
PyPDF_test_file.pdf |
| field = f.getObject() | ||
| self._buildField(field, retval, fileobj, fieldAttributes) | ||
|
|
||
| if "/XFA" in tree: |
There was a problem hiding this comment.
Why did you remove the logic around "/Fields"?
|
At this point, I no longer recall why that was done. I was only interested in the XFA feature so I probably just found a hook that I could use and grabbed it. |
|
Thank you for the swift response! |
Closes #408 Co-authored-by: George Alverson <George.Alverson@cern.ch>
|
I'm closing the PR here and continue the work in #1026. I will list you as a co-author of that PR :-) |
|
Dear Martin, Sounds good. Thanks! —George |
Closes #408 Co-authored-by: George Alverson <George.Alverson@cern.ch>
No description provided.