npm install wkhtmltopdf-installer
An NPM installer for wkhtmltopdf utility. The package automatically downloads platform specific wkhtmltopdf binary if not already available as global command.
This package is a port of phantomjs npm installer with the same API.
var path = ;var childProcess = ;var binPath = path;var childArgs =pathpathchildProcess
This package should support windows, linux and osx as well. For linux you may need to install some additional packages, see more here.
There is currently support just for x64.
wkhtmltodf downloads page provides different packages for every linux distribution and version. This project currently just grabs the binary from
Linux (Debian Wheezy). These binaries seems to work on Ubuntu as well.