Simple Textract PDF and Image File
$ npm install aws-textract-node
let config = {
aws_region: xxx,
aws_access_key_id: xxx,
aws_secret_access_key: xxx,
};
const data = await awsTextract.TextractProcess({
...config,
pathFile: xxx,
});
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' }
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] |
- Using AnalyzeDocumentCommand.
- Function Helper (getValue)
- ..
- Eko Setiyo Budi Purnomo (eko.setiyobp@gmail.com)