Skip to content

Install wkhtmltopdf and wkhtmltoimage with NPM or YARN on Linux

Notifications You must be signed in to change notification settings

theoomoregbee/wkhtmltopdf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
./node_modules/.bin/wkhtmltoimage

With wkhtmltopdf:

var wkhtmltopdf = require('wkhtmltopdf');

wkhtmltopdf.command = './node_modules/.bin/wkhtmltopdf'

wkhtmltopdf('<h1>hello world</h1>', { output: 'out.pdf' })

License

MIT

About

Install wkhtmltopdf and wkhtmltoimage with NPM or YARN on Linux

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%