wkhtmltopdf_binary_gem icon indicating copy to clipboard operation
wkhtmltopdf_binary_gem copied to clipboard

Missing binary for Ubuntu 22.04

Open elissonmichael opened this issue 3 years ago β€’ 7 comments

Invalid platform, must be running on Ubuntu 16.04/18.04/20.04 CentOS 6/7/8, Debian 9/10, archlinux amd64, or intel-based Cocoa macOS (missing binary

I would like to comment that the Ubuntu 22.04 download is already available:

elissonmichael avatar Jul 01 '22 19:07 elissonmichael

I had to used this gem instead : https://github.com/rposborne/wkhtmltopdf-heroku to make it work with Ubuntu 22.04. But the problem is :

  • My CI Server is on Ubuntu 20.04
  • My local environement is on MacOS arm64
  • My Production Server is on Ubuntu 22.04

So now I have to use one gem for my local and CI environement, and another for my production environment. That's a nice mess πŸ˜…

davidBentoPereira avatar Aug 04 '22 11:08 davidBentoPereira

@davidBentoPereira Sounds like a proper mess! How'd you configure it to handle all those envs?

leesmith avatar Aug 04 '22 15:08 leesmith

@leesmith I put one gem in the production group of the Gemfile and the other in the other groups πŸ˜… I don't have a better solution for now. Until wkhtmltopdf can support Ubuntu 22.4 on his own πŸ˜™

davidBentoPereira avatar Aug 05 '22 06:08 davidBentoPereira

@leesmith I put one gem in the production group of the Gemfile and the other in the other groups sweat_smile I don't have a better solution for now. Until wkhtmltopdf can support Ubuntu 22.4 on his own kissing_smiling_eyes

Hello, FYI, it is already supported, https://github.com/wkhtmltopdf/wkhtmltopdf/issues/5189

We got it to work with wicked_pdf gem, download the binary directly (sudo apt-get -y install wkhtmltopdf) and updating the wicked_pdf.rb initializer as recommended in the documentation of wicked_pdf

WickedPdf.config = { exe_path: '/usr/bin/wkhtmltopdf', enable_local_file_access: true }

javiervg avatar Sep 05 '22 04:09 javiervg

@javiervg works for me. The remaining thing to do is to install necessary fonts。

roostinghawk avatar Oct 27 '22 13:10 roostinghawk

checkout #150 @davidBentoPereira @elissonmichael

johnhailu avatar Nov 15 '22 13:11 johnhailu

This can be closed, now that #150 has been merged and released.

franzliedke avatar Dec 15 '22 09:12 franzliedke

Thanks for pointing this out. Closing. Please reopen if you have trouble with this specific version.

unixmonkey avatar May 10 '24 02:05 unixmonkey