Downloads and installs wkhtmltopdf from the official website
gem install wkhtmltopdf-installer
Then in your Ruby script
require 'wkhtmltopdf_installer'
system WkhtmltopdfInstaller.wkhtmltopdf_path
# this also works, because ENV['PATH'] is adjusted
system 'wkhtmltopdf'
The gem also provides a shim, so that it works in the shell too.
Pull requests are very welcome. Pull requests with updates in version.rb are welcome too.
- a similar NPM package