Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 467 Bytes

File metadata and controls

9 lines (5 loc) · 467 Bytes

pdf-minimizer

An AWS Lambda function to downsample a PDF file using Ghostscript. The function reads a PDF file from a S3 bucket, uses Ghostscript to minimize the PDF, then writes the PDF file to a different S3 bucket. This function is triggered when a PDF file is placed in the new S3 bucket.

To install:

> cd lambda && npm install && cd ..

> ./build.sh <region> <bucket to upload the code> <new stack name> <new input bucket name> <output bucket>