Skip to content

Commit

Permalink
Update form-parsing code in README, per #1120
Browse files Browse the repository at this point in the history
  • Loading branch information
jsvine committed Apr 19, 2024
1 parent 147f2c4 commit 2e9819c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ def parse_field_helper(form_data, field, prefix=None):


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

*Thanks to [@jeremybmerrill](https://github.com/jeremybmerrill) for helping to maintain the form-parsing code above.*

## Demonstrations

- [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.
Expand Down

0 comments on commit 2e9819c

Please sign in to comment.