Skip to content

A stand alone microservice written in Python3.8 for AWS Lambda to convert pages of a .pdf file into images.

Notifications You must be signed in to change notification settings

shibisuriya/pdf2image-AWS-Lambda-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pdf2image - AWS Lambda API

About:

A stand alone microservice written in Python3.8 for AWS Lambda to convert pages of a .pdf file into images. This microservice is written with the help of pdf2image.py. pdf2image.py is a Python module that wraps pdftoppm and pdftocairo to convert PDF to a PIL Image object.

Instructions:

Clone the repository

git clone https://github.com/shibisuriya/pdf2image-AWS-Lambda-API.git

Run package.sh

chmod 777 ./package.sh
./package.sh

Or zip the /src folder manually...

Create an AWS Lambda function

Alt text Alt text Alt text Alt text

Upload the generated package.zip file to AWS Lambda

Alt text Alt text Alt text

Configure AWS API gateway to invoke our Lambda function

Alt text Alt text Alt text Alt text Alt text

Results

If we send a base64 pdf string as request to the API, we will recieve an array of base64 images. Alt text Alt text

About

A stand alone microservice written in Python3.8 for AWS Lambda to convert pages of a .pdf file into images.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages