@theo4u/wkhtmltopdf
v1.1.0
Published
The package automatically downloads linux 64bit wkhtmltopdf binary, to be used with AWS Lambda
Downloads
1,217
Maintainers
Readme
wkhtmltopdf linux x64
The package automatically downloads linux 64bit wkhtmltopdf binary. Use case to be used with AWS Lambda functions
Installation
npm install @theo4u/wkhtmltopdf
Usage
./node_modules/.bin/wkhtmltopdf
With wkhtmltopdf:
var wkhtmltopdf = require('wkhtmltopdf');
wkhtmltopdf.command = './node_modules/.bin/wkhtmltopdf'
wkhtmltopdf('<h1>hello world</h1>', { output: 'out.pdf' })
License
MIT