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 within the page margins. --header and --footer apply to the input they follow; given before the first input, they apply to every input:

paper-muncher --header default.html a.html b.html --header b-header.html -o out.pdf

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