Extract text from PDF with AWS Textract + NodeJS

Intro

Requirements

Set up AWS

IAM

Install AWS dependencies

npm i @aws-sdk/client-textractnpm i @aws-sdk/client-s3npm i @aws-sdk/node-http-handler

Set the AWS credentials in project

AWS_ACCESS_KEY_ID = “Your access id from csv”AWS_SECRET_ACCESS_KEY = “Your access key from the csv”

Now, the code

Send file to S3

Send document to analyze

Get results of analysis

How to request all data

Conclusion

Systems Engineer | Mobile Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store