wkhtmltopdf binary for heroku / amd64
Clone or download
Pull request Compare This branch is 1 commit ahead of rposborne:master.
gregnavis Update the binary for Ubuntu 18.04.1
This commit updates the binary to the one compatible with Ubuntu 18.04.1
in order to make it work on Heroku-18.
Latest commit 67460ad Nov 21, 2018



Provides a wkhtmltopdf binary for Heroku Ubuntu 18.04 LTS environment.

Preconfigures pdfkit, wicked_pdf, and wisepdf to use this binary if they are loaded.


In your Gemfile:

  gem 'wkhtmltopdf-heroku'


When using with wicked_pdf

Since wicked_pdf overwrites its config hash in the initializer, you will need to update it to make sure its exe_path is configured correctly.

If you don't need any extra configurations, you can simply remove the initializer. Or you can change it to:

WickedPdf.config ||= {}
  # your extra configurations here

When using with pdf_kit or wisepdf

No extra configuration is needed. But please make sure you are not re-configuring the binary path again in their initializer files.

When using with other gems

You will need to configure the path manually. You can get the path to the executable by using this: Gem.bin_path('wkhtmltopdf-heroku', 'wkhtmltopdf-linux-amd64')

Current wkhtmltopdf binary Version Bionic AMD64

For more details see wkhtmltopdf Changelog

Supported Heroku Stacks


  • @bradphelan
  • @pallymore
  • @gregnavis


Copyright (c) 2011 Brad Phelan. See LICENSE.txt for further details.