Skip to content

About

wkhtmltopdf binary for Debian 12 and 13

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Repository files navigation

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'

And get the path with:

>> Gem.bin_path('wkhtmltopdf_debian', 'wkhtmltopdf')
=> "/home/martin/.gem/ruby/4.0.0/gems/wkhtmltopdf_debian-1.0.0/bin/wkhtmltopdf"

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.

About

wkhtmltopdf binary for Debian 12 and 13

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages