diff --git a/README.md b/README.md index abf59d76..8bd90d1c 100644 --- a/README.md +++ b/README.md @@ -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) ``` @@ -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.