Skip to content

Commit 2e9819c

Browse files
committed
Update form-parsing code in README, per #1120
h/t @jeremybmerrill
1 parent 147f2c4 commit 2e9819c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def parse_field_helper(form_data, field, prefix=None):
459459

460460

461461
form_data = []
462-
fields = resolve(pdf.doc.catalog["AcroForm"])["Fields"]
462+
fields = resolve(resolve(pdf.doc.catalog["AcroForm"])["Fields"])
463463
for field in fields:
464464
parse_field_helper(form_data, field)
465465
```
@@ -474,6 +474,8 @@ Once you run this script, `form_data` is a list containing a three-element tuple
474474
]
475475
```
476476

477+
*Thanks to [@jeremybmerrill](https://github.com/jeremybmerrill) for helping to maintain the form-parsing code above.*
478+
477479
## Demonstrations
478480

479481
- [Using `extract_table` on a California Worker Adjustment and Retraining Notification (WARN) report](examples/notebooks/extract-table-ca-warn-report.ipynb). Demonstrates basic visual debugging and table extraction.

0 commit comments

Comments
 (0)