macOS
brew install htmldoclocal Homebrew formula metadata
sudo port install htmldocMacPorts ports tree · textproc/htmldoc/Portfile · source: api.github.com
brew
Convert HTML to PDF or PostScript. Version 1.9.23 via Homebrew; verified 2026-05-11.
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 | cli | global executable |
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.
https://github.com/michaelrsweet/htmldoc
install metadata
| Package key | brew:htmldoc |
|---|---|
| Version | 1.9.23 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/htmldoc |
| Homepage | https://www.msweet.org/htmldoc/ |
| Repository | https://github.com/michaelrsweet/htmldoc |
| Upstream docs | https://www.msweet.org/htmldoc |
| License | GPL-2.0-only |
| Source archive | https://github.com/michaelrsweet/htmldoc/archive/refs/tags/v1.9.23.tar.gz |
| Last updated | 2026-05-11T15:54:11-04:00 |
| Pulse | updated |
| Dependencies | jpeg-turbo, libpng |
| Build dependencies | pkgconf |
| Uses from macOS | cups |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | htmldoc |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
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.4
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.