AWS Lambda application code.
This app Return the png binary by passing the PDF URL in the query parameter.
docker
nodejs 12.x runtime
# bash
$ docker run -v "$PWD":/var/task -it lambci/lambda:build-nodejs12.x bash
$ cp /usr/lib64/{libmount.so.1,libuuid.so.1,libblkid.so.1,libz.so.1} lib/
$ npm i
FYI: https://github.com/lambci/docker-lambda
Do something.
$ zip -9r pdf2png *
Upload it and done.