pdftk-java is a command-line tool for working with PDFs.
This project shows how to compile and deploy the pdftk
binary as an AWS Lambda Layer, as well as a built version for the binaries ready to use.
Lambda Layers is a new convenient way to manage common dependencies between different Lambda Functions.
The following command will create a well-structured layer of this package:
git clone https://github.com/Sparticuz/pdftk-aws-lambda.git
cd pdftk-aws-lambda
make
The resulting ZIP file pdftk-aws-lambda.zip
can be uploaded to the AWS Lambda Layers console.
The Layer is independent from the Lambda Function Runtime, so it should be available for any of them.