Install wkhtmltopdf by entering the following commands in the terminal:
sudo apt update sudo apt install wkhtmltopdf
Description:
Command line utilities to convert html to pdf or image using WebKit
wkhtmltopdf is a command line program which permits one to create a pdf or an image from an url, a local html file or stdin. It produces a pdf or an image like rendered with the WebKit engine. . This program requires an X11 server to run. . It is not built against a forked version of Qt hence some options are not supported.
Homepage: https://wkhtmltopdf.org/
Version: 0.12.4-1
Section: universe/utils