wicked_pdf icon indicating copy to clipboard operation
wicked_pdf copied to clipboard

Wicked_pdf on ubuntu 22.04

Open atekelt opened this issue 2 years ago • 2 comments

I recently updated my OS from ubuntu 20.04 to 22.04 i did not upgraded it from the previous version i had to clean and install a fresh ubuntu 22.04 version, and everything works fine with the os and ruby on rails but from all the gems i need only wicked_pdf has an issue with my OS version.

nvalid 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:

System specifications

wicked_pdf gem version (output of cat Gemfile.lock | grep wicked_pdf):wicked_pdf (2.6.3)

wkhtmltopdf version (output of wkhtmltopdf --version): Shows The same Error

Invalid platform

platform/distribution and version (e.g. Windows 10 / Ubuntu 16.04 / Heroku cedar): Ubuntu 22.04

atekelt avatar Oct 04 '22 07:10 atekelt

My error Invalid platform, must be running on Ubuntu 16.04/18.04/20.04 CentOS 6/7/8

roostinghawk avatar Oct 24 '22 11:10 roostinghawk

Does this mean we need to move away from WickedPDF (or any other wkhtmltopdf-backed method) if we are on Ubuntu 22? Seems that the discussion over on the wkhtmltopdf GH point that that:

https://github.com/wkhtmltopdf/wkhtmltopdf/issues/5189

philsmy avatar Nov 04 '22 12:11 philsmy

You should migrate away either way -- wkhtmltopdf is obsolete (I'm speaking with my hat as maintainer).

ashkulz avatar Nov 28 '22 12:11 ashkulz

How are you installing wkhtmltopdf? via apt-get on ubuntu, or another method?

jjb avatar Mar 08 '23 22:03 jjb

Follow my response on Stackoverflow - https://stackoverflow.com/a/75843094/4018407

pratik-kalathiya avatar Mar 25 '23 19:03 pratik-kalathiya

Ubuntu 22.04 is supported with gem 'wkhtmltopdf-binary'. https://github.com/zakird/wkhtmltopdf_binary_gem/blob/master/bin/wkhtmltopdf#L32

unixmonkey avatar Nov 17 '23 15:11 unixmonkey