API Reference PaperForge v#1.4.3

Copy Markdown View Source

Modules

Document engineering for the BEAM.

Creates and edits standard PDF AcroForms.

Interleaved 2 of 5 barcode encoding for numeric identifiers.

Represents colors used by PDF graphics operations.

Structural PDF/A and PDF/UA preparation with deterministic validation reports.

Compression helpers used by PDF streams.

Concurrent, backpressured execution for independent PDF render jobs.

Outcome and runtime metrics for one concurrent render job.

Helpers for converting between PDF coordinate systems.

Safe compiler for versioned .paperforge declarative documents.

Validated Layout IR produced from a .paperforge template.

Structured error returned while parsing, validating, or compiling a template.

Version migration helpers for .paperforge templates.

Registry of trusted visual components and resource-access policy.

Immutable design-system registry for declarative PaperForge documents.

Represents a PDF document and manages its indirect objects.

Builder for unified document layout blocks.

Represents a PDF font registered inside a document.

Stores the standard PDF fonts registered in a document.

Definitions for the 14 standard PDF fonts.

Character-width metrics for standard PDF fonts.

Minimal TrueType parser for embedded PDF Type 0 fonts.

Builds physical TrueType subsetting plans.

Builds PDF commands for drawing circles using cubic Bézier curves.

Builds PDF drawing commands for image XObjects.

Builds PDF commands for drawing lines.

Builds PDF path commands from move, line, cubic curve, and close operations.

Builds PDF commands for drawing rectangles.

Builds PDF text drawing commands.

Builds multiline text commands constrained to a rectangular area.

Represents an image registered inside a PDF document.

Stores images registered inside a PDF document.

Reads JPEG metadata without decoding image pixels.

Reads PNG metadata and image data for embedding in PDF image XObjects.

Converts interoperable source formats into PaperForge Layout IR.

Validated CSS subset used by the HTML importer.

Imports well-formed HTML fragments and a validated CSS subset.

Imports CommonMark Markdown into PaperForge Layout IR.

Imports, composes, and inspects PDF documents without external executables.

Common block representation used by the unified layout engine.

Represents page margins.

Math AST and native PDF renderer for scientific expressions.

Represents document metadata stored in the PDF information dictionary.

Represents an indirect PDF object.

Represents a PDF page and its drawing operations.

Compiles PaperForge.Page drawing operations into PDF page content.

Context passed to layout headers, footers, and custom flow blocks.

Represents the resources used by a PDF page.

Standard PDF page dimensions expressed in points.

Document-level protection policies independent from password encryption.

Represents an indirect reference to a PDF object.

Renders SVG geometry as native PDF vectors.

Stateful builder for numbered equations, citations, bibliographies, and page-aware scientific cross-references.

PDF AES-256 encryption and document permission policy.

Serializes Elixir values into PDF syntax.

Adds and verifies provider-backed digital signatures.

Contract for pluggable PDF signature providers.

Default PAdES provider backed by pure Elixir/OTP PKCS#8 signing.

Represents a PDF stream object.

Encodes strings for use inside PDF objects.

Telemetry event contract and instrumentation helpers.

Measures text using the metrics of the standard PDF fonts.

Wraps text into lines that fit within a maximum width.

Performs deterministic structural validation before PDF serialization.

Raised when a document fails structural validation before serialization.

Structured outcome returned by PaperForge.validate/1.

Serializes a PaperForge.Document into a valid PDF binary.

Mix Tasks

Validates a .paperforge file without generating a PDF.