Skip to content

EkoSetiyo13/aws-textract-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS TEXTRACT

Simple Textract PDF and Image File

Install

$ npm install aws-textract-node

Usage

let config = {
    aws_region: xxx,
    aws_access_key_id: xxx,
    aws_secret_access_key: xxx,
};

const data = await awsTextract.TextractProcess({
    ...config,
    pathFile: xxx,
});

Example

let config = {
    aws_region: xxx,
    aws_access_key_id: xxx,
    aws_secret_access_key: xxx,
};

const data = await awsTextract.TextractProcess({
    ...config,
    pathFile: "./test/example.jpeg",
});

const line = awsTextract.getValue(data, "Total");
// { key: 'Total', value: '$115.00' }

Helper

No Function Description Params
1 getValue() Get Word (Value) From Another Word (Key) source : data from textract [array],
key : keyword [string],
next : if between the key and value there is word, default next=1 [integer]

Roadmap

  • Using AnalyzeDocumentCommand.
  • Function Helper (getValue)
  • ..

Contributing

  1. Eko Setiyo Budi Purnomo (eko.setiyobp@gmail.com)

About

aws textract unofficial - simple and easy to use

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published