how to install and run wkhtmltopdf on ubuntu 22.04

Viewed 15

i recently upgraded my pc to ubuntu 22.04 but wkhtmltopdf is not working on this version of ubuntu. i use my pc to develop ruby on rails projects i tried different methods to install wkhtmltopdf but it shows an error

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:

how can run wkhtmltopdf on ubuntu 22.04

1 Answers

wkhtmltopdf can be installed on Ubuntu 22.04 with the following command:

sudo apt install wkhtmltopdf

When running wkhtmltopdf on a file that contains space characters in its name, please escape the space character by preceding it with a backslash or enclose the file name in a pair of single or double quote characters.

Related