macOS
brew install htmldoclocal Homebrew formula metadata
sudo port install htmldocMacPorts ports tree · textproc/htmldoc/Portfile · source: api.github.com
brew / rank 4305
Convert HTML to PDF or PostScript. Version 1.9.23 via Homebrew; verified 2026-07-29. Also installable with debian: sudo apt install htmldoc.
install
brew install htmldoclocal Homebrew formula metadata
sudo port install htmldocMacPorts ports tree · textproc/htmldoc/Portfile · source: api.github.com
sudo apk add htmldocAlpine Linux edge package indexes · htmldoc · source: dl-cdn.alpinelinux.org
sudo apt install htmldocDebian stable package indexes · htmldoc · source: deb.debian.org
nix profile install nixpkgs#htmldocnixpkgs package indexes · pkgs/by-name/ht/htmldoc/package.nix · source: api.github.com
sudo pacman -S htmldocArch Linux sync databases · htmldoc · source: geo.mirror.pkgbuild.com
sudo zypper install htmldocopenSUSE Tumbleweed package metadata · htmldoc · source: download.opensuse.org
overview
Convert HTML to PDF or PostScript
history
HTMLDOC is Michael R Sweet's long-lived converter for turning HTML and Markdown source files or web pages into EPUB, PostScript, PDF, or indexed HTML output with an optional table of contents. It matters in package-manager culture because it preserves an older documentation-generator workflow: small static HTML goes in, printable documents come out, and the tool can be used from a GUI, a CLI, CI jobs, or web-server/reporting pipelines.
The upstream README says HTMLDOC was developed in the 1990s as a documentation generator for Sweet's previous company and later saw substantial use as a report generator embedded in web servers. The project site describes the same core job as converting HTML and Markdown sources or web pages to paged and ebook-oriented output formats.
The source tree carries an older `release-1.8b4` tag dated 1999 and a long 1.8/1.9 tag line, showing a package with pre-GitHub roots that was later preserved in a public Git repository. The release notes and site also document the deliberate limitations that shaped its evolution: useful for documentation, invoices, and reports, but not a general modern browser engine with full CSS, forms, Unicode, or emoji support.
The input package facts record HTMLDOC in Homebrew, Debian, Ubuntu, MacPorts, Nix, Arch, Alpine, and openSUSE-style packaging. That breadth fits a utility that is often installed by documentation build systems or server-side report generators rather than by end users seeking a full browser-to-PDF stack.
HTMLDOC is used where relatively simple HTML or Markdown needs deterministic printable output: manuals, internal documentation, invoices, reports, and table-of-contents-based documents. Its appeal is the narrow converter surface: it can be automated from the command line while also offering a GUI for manual jobs.
For package nerds, HTMLDOC is interesting because it is an old-school Unix packaging survivor. It predates the headless-Chromium era, keeps a focused paged-output model, and remains small enough to package widely as a standalone converter instead of pulling in a browser runtime.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
htmldoc | executable | indexed executable | Discovered from the local executable index. |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:htmldoc |
|---|---|
| Version | 1.9.23 |
| Package manager | Homebrew |
| Homepage | https://www.msweet.org/htmldoc/ |
| Repository | https://github.com/michaelrsweet/htmldoc |
| Last updated | 2026-07-29T14:13:06+09:00 |
| Pulse | updated |
| Bottle | not recorded |
| Service | none declared |
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
htmldoc 1.9.20-1
HTML processor that generates indexed HTML, PS, and PDF
https://www.msweet.org/htmldoc/
sudo apt install htmldochtmldoc-common 1.9.20-1
Common arch-independent files for htmldoc
https://www.msweet.org/htmldoc/
sudo apt install htmldoc-commonhtmldoc
nix profile install nixpkgs#htmldochtmldoc 1.9.17-1build3
HTML processor that generates indexed HTML, PS, and PDF
https://www.msweet.org/htmldoc/
sudo apt install htmldochtmldoc-common 1.9.17-1build3
Common arch-independent files for htmldoc
https://www.msweet.org/htmldoc/
sudo apt install htmldoc-commonhtmldoc 1.9.23-r0
HTML conversion software
https://www.msweet.org/htmldoc/
sudo apk add htmldochtmldoc-doc 1.9.23-r0
HTML conversion software (documentation)
https://www.msweet.org/htmldoc/
sudo apk add htmldoc-dochtmldoc 1.9.23-2
HTML Conversion Software
https://www.msweet.org/htmldoc/
sudo pacman -S htmldochtmldoc 1.9.23-1.6
HTML Processor that Generates HTML, PostScript, and PDF Files
https://michaelrsweet.github.io/htmldoc/index.html
sudo zypper install htmldochtmldoc
sudo port install htmldocsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.