htmldoc
« Back to VersTracker
Description:
Convert HTML to PDF or PostScript
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: pdf html document-conversion postscript printing
Install: brew install htmldoc
About:
HTMLDOC is a command-line tool that converts HTML documents into structured output formats like PDF and PostScript. It parses HTML files and applies styling to generate printable documents, making it ideal for offline documentation. The tool supports standard HTML elements and provides control over layout, fonts, and margins for professional output.
Key Features:
  • Converts HTML to PDF and PostScript formats
  • Supports standard HTML 3.2 and some HTML 4.0 elements
  • Command-line interface for batch processing and automation
  • Customizable page layout, fonts, and margins
  • Table of contents generation from heading tags
Use Cases:
  • Generating PDF documentation from HTML source files
  • Creating printable reports from web-based data
  • Batch converting HTML pages to PostScript for printing
Alternatives:
  • wkhtmltopdf – Uses WebKit rendering engine for better modern CSS support but larger dependency footprint
  • pandoc – More versatile document converter with broader format support but different HTML-to-PDF approach
  • weasyprint – Python-based with modern CSS support but requires Python ecosystem
Version History
Detected Version Rev Change Commit
Sep 12, 2025 10:35am 0 VERSION_BUMP 752c2841
Sep 13, 2024 9:56pm 0 VERSION_BUMP 0428640c