Here is my app.component.ts.I have imported aws-sdk/client-textract in app.component.ts and
given region of my textract I donot know where to give my access_key and secret_key and also what are parameters to be passed for textract.If any one can solve this please help me .Thank you
import { Component } from '@angular/core';
import * as AWS from "@aws-sdk/client-textract";
const client = new AWS.Textract({ region: "us-east-1" });
const params = {
Document: {
// Bytes:
},
"FeatureTypes": ["FORMS"],
}
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'newboto';
cred : any ;
async callTextract(){
try {
const data = await client.analyzeDocument(params);
} catch (error) {
console.log(error);
}
}
}