Provides a wkhtmltopdf binary for Heroku 22/24 Stacks.
Preconfigures wicked_pdf
(if loaded) to use this binary.
In your Gemfile
:
gem "wkhtmltopdf-heroku", "~> 3.1.0", github: "ynab/wkhtmltopdf-heroku", tag: "v3.1.0"
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 ||= {}
WickedPdf.config.merge!({
# your extra configurations here
})
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_ubuntu_22.04_amd64')
0.12.6.1 r2 Ubuntu Jammy AMD64
For more details see CHANGELOG
- @bradphelan
- @pallymore
Copyright (c) 2011 Brad Phelan. See LICENSE.txt for further details.