Skip to main content

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​

InputTypeRequiredDefaultWhat it is
SessionStringNoaws_aiName of the session opened by Connect.
FileFileYesPNG, JPEG or TIFF picture, or a one-page PDF; at most 10 MB.
FormsBooleanNotrueRead form fields (key and value pairs).
TablesBooleanNotrueRead tables.
First row headersBooleanNotrueUse the first row of each table as its column names.

Outputs​

OutputTypeWhat it is
textStringAll lines of text, one per line.
key_valuesTableForm fields. Columns: key, value, confidence, page.
fieldsDictionaryForm fields as key to value, e.g. {"Invoice number:": "INV-1001"}.
tablesListOne Data Table per table found, top of the page first.
table_countNumberHow many tables were found.