Install htmldoc by entering the following commands in the terminal:
sudo apt update sudo apt install htmldoc
Description:
HTML processor that generates indexed HTML, PS, and PDF
HTMLDOC is a program for writing documentation in HTML and producing indexed HTML, PostScript, or PDF output (with tables of contents). It supports most HTML 3.2 and some HTML 4.0 syntax, as well as GIF, JPEG, and PNG images.
Homepage: https://www.msweet.org/htmldoc/
Version: 1.9.2-1
Section: universe/web