https://github.com/pindlebot/pdftk-lambda
https://github.com/pindlebot/pdftk-lambda
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/pindlebot/pdftk-lambda
- Owner: pindlebot
- Created: 2018-07-24T08:04:06.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-31T21:23:21.000Z (over 6 years ago)
- Last Synced: 2025-04-25T03:15:00.772Z (about 1 year ago)
- Language: JavaScript
- Size: 12.3 MB
- Stars: 13
- Watchers: 3
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## pdftk-lambda
### Installation and Usage
```bash
npm i pdftk-lambda
```
Next, require the package at the top of your lambda function.
```js
// modifies PATH, LD_LIBRARY_PATH, and PKG_CONFIG_PATH to point to the pdftk binary and libgcj.so.10
require('pdftk-lambda')
```
## Why This Package?
Installing this package makes it possible to use pdftk in AWS lambda. It includes two binaries, pdftk and the dependency libgcj.so.10.
`pdftk-lambda` was compiled using the latest public Amazon Linux AMI version (amzn-ami-hvm-2017.03.1.20170812-x86_64-gp2) as of this writing (07/24/2018).