Skip to content

johanub/Lambda-poppler-precompiled

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lambda-poppler-precompiled

pdf to img, pdf to text.. and so on!!

I have created this repo out of furstration by the lack of documantation and general help in concern to working with pdf documents on aws lambda.

Getting Started

These instructions will get you a copy of the project up to run it on lambda

Installing

A step by step on how to setup using my sample script witch uses poppler to create thumbnails for pdf files.

  1. Clone the project
git clone https://github.com/johanub/Lambda-poppler-precompiled
  1. Edit the index.py file to use your bucket
s3_bucket = s3.Bucket("<your-bucket>")
  1. Navigate into the project directorty and zip the files using this command (command only works on unix based systems)
zip -r -X "app.zip" *
  1. Now go to the aws lambda console and and go into layer

  2. Make a new layer with the poppler.zip file. For runtime just choose all the python runtimes.

  1. Create a new lambda function and upload the fileapp.zip

  2. Select the layer witch we just made.

  1. Setup a trigger on the s3 bucket where the pdf's will be uploaded

  2. Go to the bucket and make a directory called previews Explain how to run the automated tests for this system

  3. Upload a pdf to your s3 and see the magic

Based on

  • Pavinthan - Poppler for aws lambda - Pavinthan

Releases

No releases published

Packages

No packages published

Languages