Paper Muncher

Usage

Paper-Muncher is a document rendering tool that converts web documents into high-quality PDFs or rasterized images using the Vaev layout engine. It supports HTTP and local I/O, and CSS units for layout configuration.

Commands


print

paper-muncher --unsecure print <input> -o <output> [options]

Renders a web document to a print-ready file (typically PDF).

Options:

Examples:

paper-muncher --unsecure print article.html -o out.pdf
paper-muncher --unsecure print article.html -o out.pdf --paper Letter --orientation landscape
paper-muncher --unsecure print article.html -o https://example.com/doc.pdf --output-mime application/pdf

render

paper-muncher --unsecure render <input> -o <output> [options]

Renders a web document to a raster image (BMP, PNG, etc.).

Options:

Examples:

paper-muncher --unsecure render page.html -o out.bmp
paper-muncher --unsecure render page.html -o out.png --width 1024px --height 768px --density 192dpi
paper-muncher --unsecure render page.html -o out.png --wireframe

NOTE: <scale>, <density>, <orientation>, <length>, <duration> all use CSS unit synthax