AptlyStar

AWS Textract

Extract text, tables, and forms from documents

AWS Textract is a powerful AI service from Amazon Web Services designed to automatically extract printed text, handwriting, tables, forms, key-value pairs, and other structured data from scanned documents and images. Textract leverages advanced optical character recognition (OCR) and document analysis to transform documents into actionable data, enabling automation, analytics, compliance, and more.

With AWS Textract, you can:

  • Extract text from images and documents: Recognize printed text and handwriting in formats such as PDF, JPEG, PNG, or TIFF
  • Detect and extract tables: Automatically find tables and output their structured content
  • Parse forms and key-value pairs: Pull structured data from forms, including fields and their corresponding values
  • Identify signatures and layout features: Detect signatures, geometric layout, and relationships between document elements
  • Customize extraction with queries: Extract specific fields and answers using query-based extraction (e.g., "What is the invoice number?")

In Aptlystar, the AWS Textract integration empowers your agents to intelligently process documents as part of their workflows. This unlocks automation scenarios such as data entry from invoices, onboarding documents, contracts, receipts, and more. Your agents can extract relevant data, analyze structured forms, and generate summaries or reports directly from document uploads or URLs. By connecting Aptlystar with AWS Textract, you can reduce manual effort, improve data accuracy, and streamline your business processes with robust document understanding.

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

Input

ParameterTypeRequiredDescription
filefileNoDocument to be processed (JPEG, PNG, or single-page PDF).

Output

ParameterTypeDescription
blocksarrayArray of Block objects containing detected text, tables, forms, and other elements
↳ BlockTypestringType of block (PAGE, LINE, WORD, TABLE, CELL, KEY_VALUE_SET, etc.)
↳ IdstringUnique identifier for the block
↳ TextstringThe text content (for LINE and WORD blocks)
↳ TextTypestringType of text (PRINTED or HANDWRITING)
↳ ConfidencenumberConfidence score (0-100)
↳ PagenumberPage number
↳ GeometryobjectLocation and bounding box information
↳ BoundingBoxobjectBoundingBox output from the tool
↳ HeightnumberHeight as ratio of document height
↳ LeftnumberLeft position as ratio of document width
↳ TopnumberTop position as ratio of document height
↳ WidthnumberWidth as ratio of document width
↳ PolygonarrayPolygon coordinates
↳ XnumberX coordinate
↳ YnumberY coordinate
↳ RelationshipsarrayRelationships to other blocks
↳ TypestringRelationship type (CHILD, VALUE, ANSWER, etc.)
↳ IdsarrayIDs of related blocks
↳ EntityTypesarrayEntity types for KEY_VALUE_SET (KEY or VALUE)
↳ SelectionStatusstringFor checkboxes: SELECTED or NOT_SELECTED
↳ RowIndexnumberRow index for table cells
↳ ColumnIndexnumberColumn index for table cells
↳ RowSpannumberRow span for merged cells
↳ ColumnSpannumberColumn span for merged cells
↳ QueryobjectQuery information for QUERY blocks
↳ TextstringQuery text
↳ AliasstringQuery alias
↳ PagesarrayPages to search
documentMetadataobjectMetadata about the analyzed document
↳ pagesnumberNumber of pages in the document
modelVersionstringVersion of the Textract model used for processing

On this page