wkhtmltopdf binary for Debian 12 and 13.
This is the same (and based on) wkhtmltopdf_binary but removes binaries for other systems, resulting in a much smaller gem and container size. This repo's history has been rewritten with git filter-repo to remove ~1.8G of needless binary data.
Note that wkhtmltopdf is deprecated, and using this is not recommended for new projects.
Usage
In Gemfile:
gem 'wkhtmltopdf_debian'
It also ships with libjpeg.so.62 from Debian 13 since the main reason it won't run on newer systems is:
error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
On unsupported architectures you will get something like:
wkhtmltopdf_debian: unsupported platform FreeBSD/x86_64
You can set the WKHTMLTOPDF_BIN for those cases, e.g.
export WKHTMLTOPDF_BIN=/bin/wkhtmltopdf
Debian unfortunately removed the wkhtmltopdf package, hence the need for this gem.