Paper Muncher

Usage

Paper-Muncher is a next-generation document generation tool designed for rendering documents to different formats, including PDFs and images. While there is no official way to install it yet, users who wish to use it will need to build it from the source code.

Available Commands

  1. Printing to PDF:

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

This command renders the specified document to a PDF file. It accepts several options for inspecting various internal states during rendering:

Examples: - Basic usage: paper-muncher print document.html -o output.pdf - Inspecting layout during PDF generation: paper-muncher print document.html -o output.pdf --dump-layout

  1. Rendering to Image:

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

This command renders the specified document to an image format such as PNG. It accepts additional options for setting the output dimensions and inspecting various internal states:

Examples: - Basic usage: paper-muncher render document.html -o output.png - Custom image dimensions: paper-muncher render document.html -o output.png --width 1024 --height 768

  1. CSS Commands:

Paper-Muncher provides tools to inspect and debug CSS files:

Commands to debug and inspect HTML or XML-based documents:

paper-muncher inspect <input>

Launches a UI-based inspector for visual debugging of the document. This allows you to see the rendered result, inspect individual elements, and debug layout and styling issues interactively.