A web service that transforms a PDF to text using pdftotext
on AWS Lambda.
- Clone this repository
- Get the aws cli and login
- Create a Lambda function (create from scratch, use Node 6.10 and call it
pdf
) on AWS Lambda Console - Run
npm install
and thennpm run deploy
- Thats it! Your code is now on AWS Lambda.
- Install curl
- Send a request like (where
myfile.pdf
is your pdf filename):curl -X POST -H 'Content-Type: application/pdf' --data-binary @<myfile.pdf> https://<my_aws_lambda_url>
- You will get the text of the PDF sent back!