Read forms and tables
Read the text, the form fields (key and value) and the tables of a picture or one-page PDF; each table becomes a Data Table (Amazon Textract).
Command in the AWS AI services toolkit · id ooa.aws_ai/textract_analyze_document · 5 inputs (1 required), 5 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Session | String | No | aws_ai | Name of the session opened by Connect. |
| File | File | Yes | PNG, JPEG or TIFF picture, or a one-page PDF; at most 10 MB. | |
| Forms | Boolean | No | true | Read form fields (key and value pairs). |
| Tables | Boolean | No | true | Read tables. |
| First row headers | Boolean | No | true | Use the first row of each table as its column names. |
Outputs
| Output | Type | What it is |
|---|---|---|
| text | String | All lines of text, one per line. |
| key_values | Table | Form fields. Columns: key, value, confidence, page. |
| fields | Dictionary | Form fields as key to value, e.g. {"Invoice number:": "INV-1001"}. |
| tables | List | One Data Table per table found, top of the page first. |
| table_count | Number | How many tables were found. |