https://github.com/rnitta/aws-lambda-pdf2png
Pass pdf and get png. AWS Lambda application.
https://github.com/rnitta/aws-lambda-pdf2png
aws aws-lambda lambda serverless
Last synced: 10 months ago
JSON representation
Pass pdf and get png. AWS Lambda application.
- Host: GitHub
- URL: https://github.com/rnitta/aws-lambda-pdf2png
- Owner: rnitta
- License: gpl-3.0
- Created: 2020-11-20T15:27:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-21T06:38:42.000Z (about 4 years ago)
- Last Synced: 2025-03-17T20:47:47.158Z (about 1 year ago)
- Topics: aws, aws-lambda, lambda, serverless
- Language: JavaScript
- Homepage:
- Size: 19.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# What is this?
AWS Lambda application code.
This app Return the png binary by passing the PDF URL in the query parameter.
# Development Environment
docker
nodejs 12.x runtime
```bash
# bash
$ docker run -v "$PWD":/var/task -it lambci/lambda:build-nodejs12.x bash
```
```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
# Deployment
## sam-cli
Do something.
## Upload zip package on the AWS console
### zip
```bash
$ zip -9r pdf2png *
```
### upload
Upload it and done.