Mandala
Tools

AWS Textract

Extract text, tables, and forms from documents

Usage Instructions

Integrate AWS Textract into your workflow to extract text, tables, forms, and key-value pairs from documents. Single-page mode supports JPEG, PNG, and single-page PDF. Multi-page mode supports multi-page PDF and TIFF.

Tools

textract_parser_v2

Parse documents using AWS Textract OCR and document analysis

Input

ParameterTypeRequiredDescription
accessKeyIdstringYesAWS Access Key ID
secretAccessKeystringYesAWS Secret Access Key
regionstringYesAWS region for Textract service (e.g., us-east-1)
processingModestringNoDocument type: single-page or multi-page. Defaults to single-page.
s3UristringNoS3 URI for multi-page processing (s3://bucket/key).
featureTypesarrayNoFeature types to detect: TABLES, FORMS, QUERIES, SIGNATURES, LAYOUT. If not specified, only text detection is performed.
queriesarrayNoCustom queries to extract specific information. Only used when featureTypes includes QUERIES.

Output

ParameterTypeDescription
blocksarrayArray of Block objects containing detected text, tables, forms, and other elements
documentMetadataobjectMetadata about the analyzed document
modelVersionstringVersion of the Textract model used for processing

textract_analyze_expense

Extract structured invoice and receipt fields using AWS Textract AnalyzeExpense

Input

ParameterTypeRequiredDescription
accessKeyIdstringYesAWS Access Key ID
secretAccessKeystringYesAWS Secret Access Key
regionstringYesAWS region for Textract service (e.g., us-east-1)
processingModestringNoDocument type: single-page or multi-page. Defaults to single-page.
s3UristringNoS3 URI for multi-page processing (s3://bucket/key).

Output

ParameterTypeDescription
expenseDocumentsarrayDetected expense documents with summary fields and line items
documentMetadataobjectMetadata about the analyzed document
modelVersionstringVersion of the AnalyzeExpense model used (multi-page/async only)

textract_analyze_id

Extract identity document fields using AWS Textract AnalyzeID

Input

ParameterTypeRequiredDescription
accessKeyIdstringYesAWS Access Key ID
secretAccessKeystringYesAWS Secret Access Key
regionstringYesAWS region for Textract service (e.g., us-east-1)

Output

ParameterTypeDescription
identityDocumentsarrayDetected identity documents with normalized fields
documentMetadataobjectMetadata about the analyzed document
modelVersionstringVersion of the AnalyzeID model used for processing

Notes

  • Category: tools
  • Type: textract_v2
AWS Textract