Paper Muncher

Usage

Paper-Muncher is a document rendering tool that converts web pages (HTML, XHTML, SVG, or Markdown) into printable or viewable documents such as PDFs or rasterized images using the Vaev layout engine. It supports CSS units for layout configuration.

paper-muncher <inputs> [options...]

Renders one or more web documents to a print-ready file (typically PDF).

Common Options:

Runtime Options:

Input/Output Options:

Paper Options:

Viewport Options:

Explicit --width and --height values take precedence over the --paper dimensions.

Document Decoration:

Headers and footers repeat on every page, above and below the main content, within the page margins.

Document Flow:

Document Extend:

Developer Options:

Supported Formats:

Examples:

paper-muncher article.html -o out.pdf
paper-muncher article.html -o out.pdf --paper Letter --orientation landscape
paper-muncher article.md -o out.png --width 800px --extend fit
paper-muncher ch1.html ch2.html ch3.html -o book.pdf
paper-muncher page.html -o out.pdf --header header.html --footer footer.html

NOTE: <scale>, <density>, <length>, <margins>, <size> all use CSS unit syntax