# Install htmldoc with Homebrew, apk, apt, MacPorts, Nix, pacman, zypper

Convert HTML to PDF or PostScript. Version 1.9.23 via Homebrew; verified 2026-05-11.

## Install

```sh
sudo av install brew:htmldoc
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install htmldoc
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install htmldoc
```

  Evidence: MacPorts ports tree: textproc/htmldoc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add htmldoc
```

  Evidence: Alpine Linux edge package indexes: htmldoc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install htmldoc
```

  Evidence: Debian stable package indexes: htmldoc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#htmldoc
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ht/htmldoc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S htmldoc
```

  Evidence: Arch Linux sync databases: htmldoc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install htmldoc
```

  Evidence: openSUSE Tumbleweed package metadata: htmldoc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:htmldoc
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/htmldoc>
- **Version:** 1.9.23
- **Source summary:** Convert HTML to PDF or PostScript
- **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
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- htmldoc (cli)
- htmldoc (alias)

## Dependencies

- jpeg-turbo
- libpng

## Build dependencies

- pkgconf

## Uses from macOS

- cups

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.9.23
- Package-manager updated: 2026-05-11
- Local data: ok
- Upstream repository: https://github.com/michaelrsweet/htmldoc
- Upstream latest detected: v1.9.23 (current)
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 1990s: HTMLDOC was developed as a documentation generator for Michael R Sweet's previous company.
- 1999: The public Git history includes the `release-1.8b4` tag.
- 2011-2024: Runtime version text in issue output identifies the 1.9 line as GPL software maintained by Michael R Sweet across that period.
- 2026: The GitHub repository includes the `v1.9.23` tag for the continuing 1.9 series.
- Package-manager era: The input package facts record HTMLDOC across Homebrew, Debian, Ubuntu, MacPorts, Nix, Arch, Alpine, and zypper-family packaging.

### Related projects

- HTMLDOC is related to other document converters and paged-output generators, but it occupies a narrower historical lane than browser-based HTML-to-PDF tools. Its closest package-manager neighbors are converters such as wkhtmltopdf, Pandoc, and headless-browser wrappers, while its design lineage is closer to static documentation and report generation.

### Sources

- <https://api.github.com/repos/michaelrsweet/htmldoc/commits/2de07fe97da08de65f1284c8497b90cfaa24d9eb>
- <https://api.github.com/repos/michaelrsweet/htmldoc/commits/91cd814cbad259669c9b3e768e8a15fc1c6c156e>
- <https://api.github.com/repos/michaelrsweet/htmldoc/tags?per_page=100>
- <https://github.com/michaelrsweet/htmldoc>
- <https://github.com/michaelrsweet/htmldoc/releases>
- <https://www.msweet.org/htmldoc/>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **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:** head, stable

## Other Package-Manager Records

- Debian apt - htmldoc - 1.9.20-1: normalized package name match | Debian stable package indexes: htmldoc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | HTML processor that generates indexed HTML, PS, and PDF | https://www.msweet.org/htmldoc/
- Debian apt - htmldoc-common - 1.9.20-1: normalized package name match | Debian stable package indexes: htmldoc-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Common arch-independent files for htmldoc | https://www.msweet.org/htmldoc/
- Nix - htmldoc: normalized package name match | nixpkgs package indexes: pkgs/by-name/ht/htmldoc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - htmldoc - 1.9.17-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: htmldoc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | HTML processor that generates indexed HTML, PS, and PDF | https://www.msweet.org/htmldoc/
- Ubuntu apt - htmldoc-common - 1.9.17-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: htmldoc-common from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Common arch-independent files for htmldoc | https://www.msweet.org/htmldoc/
- apk - htmldoc - 1.9.23-r0: normalized package name match | Alpine Linux edge package indexes: htmldoc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | HTML conversion software | https://www.msweet.org/htmldoc/
- apk - htmldoc-doc - 1.9.23-r0: normalized package name match | Alpine Linux edge package indexes: htmldoc-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | HTML conversion software (documentation) | https://www.msweet.org/htmldoc/
- pacman - htmldoc - 1.9.23-2: normalized package name match | Arch Linux sync databases: htmldoc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | HTML Conversion Software | https://www.msweet.org/htmldoc/
- zypper - htmldoc - 1.9.23-1.4: normalized package name match | openSUSE Tumbleweed package metadata: htmldoc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | HTML Processor that Generates HTML, PostScript, and PDF Files | https://michaelrsweet.github.io/htmldoc/index.html
- MacPorts - htmldoc: normalized package name match | MacPorts ports tree: textproc/htmldoc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [jpeg-turbo](https://www.automicvault.com/pkg/brew/jpeg-turbo/) - Runtime dependency declared by Homebrew.
- [libpng](https://www.automicvault.com/pkg/brew/libpng/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [html2markdown](https://www.automicvault.com/pkg/brew/html2markdown/) - Shares av.db curated category or tags: cli, conversion, converter, developer-tools, html.
- [html2text](https://www.automicvault.com/pkg/brew/html2text/) - Shares av.db curated category or tags: cli, conversion, converter, developer-tools, html.
- [markdown](https://www.automicvault.com/pkg/brew/markdown/) - Shares av.db curated category or tags: cli, conversion, developer-tools, documentation, html.
- [texi2html](https://www.automicvault.com/pkg/brew/texi2html/) - Shares av.db curated category or tags: cli, converter, developer-tools, documentation, html.
- [tfk8s](https://www.automicvault.com/pkg/brew/tfk8s/) - Shares av.db curated category or tags: cli, conversion, converter, developer-tools.
- [ttf2pt1](https://www.automicvault.com/pkg/brew/ttf2pt1/) - Shares av.db curated category or tags: cli, conversion, developer-tools, postscript.
- [vilistextum](https://www.automicvault.com/pkg/brew/vilistextum/) - Shares av.db curated category or tags: cli, conversion, developer-tools, html.
- [xmltoman](https://www.automicvault.com/pkg/brew/xmltoman/) - Shares av.db curated category or tags: cli, converter, developer-tools, documentation, html.
- [xml2rfc](https://www.automicvault.com/pkg/brew/xml2rfc/) - Both packages work with overlapping file formats or content types. Shared terms: cli, convert, converter, developer, developer-tools.
- [pdftilecut](https://www.automicvault.com/pkg/brew/pdftilecut/) - Both packages work with overlapping file formats or content types. Shared terms: cli, developer, developer-tools, jpeg, jpeg-turbo.

## Combined YAML source

View the package source record on GitHub. [combined/htmldoc.yml](https://github.com/automic-vault/db/blob/main/combined/htmldoc.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
