# PaperForge v1.4.2 - Table of Contents

> Document engineering for the BEAM. Build, secure, validate, and transform
native PDF documents entirely in Elixir, with declarative templates,
measured layout, interoperability, accessibility, and production rendering.

## Pages

- [PaperForge](readme.md)
- [Changelog](changelog.md)
- [Contributing to PaperForge](contributing.md)
- [Contributor Covenant Code of Conduct](code_of_conduct.md)
- [PaperForge Public API](api.md)
- [PaperForge Architecture](architecture.md)
- [Declarative Documents](declarative.md)
- [Create PaperForge Documents Without Writing Elixir](paperforge_templates.md)
- [PaperForge With Phoenix](phoenix.md)
- [Import, Forms, And PDF Interoperability](interoperability.md)
- [Scientific Documents](scientific.md)
- [Migrating PaperForge](migrating.md)
- [PaperForge Production Scaling](production.md)
- [LICENSE](license.md)

## Modules

- [PaperForge](PaperForge.md): Document engineering for the BEAM.
- [PaperForge.AcroForm](PaperForge.AcroForm.md): Creates and edits standard PDF AcroForms.
- [PaperForge.Barcode](PaperForge.Barcode.md): Interleaved 2 of 5 barcode encoding for numeric identifiers.
- [PaperForge.Color](PaperForge.Color.md): Represents colors used by PDF graphics operations.
- [PaperForge.Compliance](PaperForge.Compliance.md): Structural PDF/A and PDF/UA preparation with deterministic validation reports.
- [PaperForge.Compression](PaperForge.Compression.md): Compression helpers used by PDF streams.
- [PaperForge.Concurrent](PaperForge.Concurrent.md): Concurrent, backpressured execution for independent PDF render jobs.
- [PaperForge.Concurrent.Result](PaperForge.Concurrent.Result.md): Outcome and runtime metrics for one concurrent render job.

- [PaperForge.Coordinates](PaperForge.Coordinates.md): Helpers for converting between PDF coordinate systems.
- [PaperForge.Declarative](PaperForge.Declarative.md): Safe compiler for versioned `.paperforge` declarative documents.
- [PaperForge.Declarative.Compiled](PaperForge.Declarative.Compiled.md): Validated Layout IR produced from a `.paperforge` template.
- [PaperForge.Declarative.Migration](PaperForge.Declarative.Migration.md): Version migration helpers for `.paperforge` templates.
- [PaperForge.Declarative.Registry](PaperForge.Declarative.Registry.md): Registry of trusted visual components and resource-access policy.
- [PaperForge.DesignSystem](PaperForge.DesignSystem.md): Immutable design-system registry for declarative PaperForge documents.
- [PaperForge.Document](PaperForge.Document.md): Represents a PDF document and manages its indirect objects.
- [PaperForge.Flow](PaperForge.Flow.md): Builder for unified document layout blocks.

- [PaperForge.Font](PaperForge.Font.md): Represents a PDF font registered inside a document.

- [PaperForge.FontRegistry](PaperForge.FontRegistry.md): Stores the standard PDF fonts registered in a document.
- [PaperForge.Fonts.Builtin](PaperForge.Fonts.Builtin.md): Definitions for the 14 standard PDF fonts.
- [PaperForge.Fonts.Metrics](PaperForge.Fonts.Metrics.md): Character-width metrics for standard PDF fonts.
- [PaperForge.Fonts.TrueType](PaperForge.Fonts.TrueType.md): Minimal TrueType parser for embedded PDF Type 0 fonts.

- [PaperForge.Fonts.TrueType.Subsetter](PaperForge.Fonts.TrueType.Subsetter.md): Builds physical TrueType subsetting plans.
- [PaperForge.Graphics.Circle](PaperForge.Graphics.Circle.md): Builds PDF commands for drawing circles using cubic Bézier curves.

- [PaperForge.Graphics.Image](PaperForge.Graphics.Image.md): Builds PDF drawing commands for image XObjects.
- [PaperForge.Graphics.Line](PaperForge.Graphics.Line.md): Builds PDF commands for drawing lines.

- [PaperForge.Graphics.Path](PaperForge.Graphics.Path.md): Builds PDF path commands from move, line, cubic curve, and close operations.

- [PaperForge.Graphics.Rectangle](PaperForge.Graphics.Rectangle.md): Builds PDF commands for drawing rectangles.

- [PaperForge.Graphics.Text](PaperForge.Graphics.Text.md): Builds PDF text drawing commands.
- [PaperForge.Graphics.TextBox](PaperForge.Graphics.TextBox.md): Builds multiline text commands constrained to a rectangular area.
- [PaperForge.Image](PaperForge.Image.md): Represents an image registered inside a PDF document.
- [PaperForge.ImageRegistry](PaperForge.ImageRegistry.md): Stores images registered inside a PDF document.
- [PaperForge.Images.JPEG](PaperForge.Images.JPEG.md): Reads JPEG metadata without decoding image pixels.
- [PaperForge.Images.PNG](PaperForge.Images.PNG.md): Reads PNG metadata and image data for embedding in PDF image XObjects.
- [PaperForge.Import](PaperForge.Import.md): Converts interoperable source formats into PaperForge Layout IR.
- [PaperForge.Import.CSS](PaperForge.Import.CSS.md): Validated CSS subset used by the HTML importer.
- [PaperForge.Import.HTML](PaperForge.Import.HTML.md): Imports well-formed HTML fragments and a validated CSS subset.
- [PaperForge.Import.Markdown](PaperForge.Import.Markdown.md): Imports CommonMark Markdown into PaperForge Layout IR.
- [PaperForge.Interoperability](PaperForge.Interoperability.md): Imports, composes, and inspects PDF documents without external executables.
- [PaperForge.Layout.Block](PaperForge.Layout.Block.md): Common block representation used by the unified layout engine.

- [PaperForge.Margins](PaperForge.Margins.md): Represents page margins.
- [PaperForge.Math](PaperForge.Math.md): Math AST and native PDF renderer for scientific expressions.
- [PaperForge.Metadata](PaperForge.Metadata.md): Represents document metadata stored in the PDF information dictionary.
- [PaperForge.Object](PaperForge.Object.md): Represents an indirect PDF object.
- [PaperForge.Page](PaperForge.Page.md): Represents a PDF page and its drawing operations.
- [PaperForge.PageCompiler](PaperForge.PageCompiler.md): Compiles `PaperForge.Page` drawing operations into PDF page content.
- [PaperForge.PageContext](PaperForge.PageContext.md): Context passed to layout headers, footers, and custom flow blocks.

- [PaperForge.PageResources](PaperForge.PageResources.md): Represents the resources used by a PDF page.
- [PaperForge.PageSize](PaperForge.PageSize.md): Standard PDF page dimensions expressed in points.

- [PaperForge.Protection](PaperForge.Protection.md): Document-level protection policies independent from password encryption.
- [PaperForge.Reference](PaperForge.Reference.md): Represents an indirect reference to a PDF object.
- [PaperForge.SVG](PaperForge.SVG.md): Renders SVG geometry as native PDF vectors.
- [PaperForge.Scientific](PaperForge.Scientific.md): Stateful builder for numbered equations, citations, bibliographies, and
page-aware scientific cross-references.

- [PaperForge.Security](PaperForge.Security.md): PDF AES-256 encryption and document permission policy.
- [PaperForge.Serializer](PaperForge.Serializer.md): Serializes Elixir values into PDF syntax.
- [PaperForge.Signature](PaperForge.Signature.md): Adds and verifies provider-backed digital signatures.
- [PaperForge.Signature.Provider](PaperForge.Signature.Provider.md): Contract for pluggable PDF signature providers.
- [PaperForge.Signature.Providers.SignCore](PaperForge.Signature.Providers.SignCore.md): Default PAdES provider backed by pure Elixir/OTP PKCS#8 signing.
- [PaperForge.Stream](PaperForge.Stream.md): Represents a PDF stream object.
- [PaperForge.StringEncoding](PaperForge.StringEncoding.md): Encodes strings for use inside PDF objects.
- [PaperForge.Telemetry](PaperForge.Telemetry.md): Telemetry event contract and instrumentation helpers.
- [PaperForge.TextMetrics](PaperForge.TextMetrics.md): Measures text using the metrics of the standard PDF fonts.
- [PaperForge.TextWrapper](PaperForge.TextWrapper.md): Wraps text into lines that fit within a maximum width.
- [PaperForge.Validation](PaperForge.Validation.md): Performs deterministic structural validation before PDF serialization.
- [PaperForge.Writer](PaperForge.Writer.md): Serializes a `PaperForge.Document` into a valid PDF binary.

- Exceptions
  - [PaperForge.Declarative.Error](PaperForge.Declarative.Error.md): Structured error returned while parsing, validating, or compiling a template.
  - [PaperForge.FontError](PaperForge.FontError.md)
  - [PaperForge.LayoutError](PaperForge.LayoutError.md)
  - [PaperForge.NavigationError](PaperForge.NavigationError.md)
  - [PaperForge.PageTemplateError](PaperForge.PageTemplateError.md)
  - [PaperForge.TableError](PaperForge.TableError.md)
  - [PaperForge.ValidationError](PaperForge.ValidationError.md): Raised when a document fails structural validation before serialization.

## Mix Tasks

- [mix paper_forge.validate](Mix.Tasks.PaperForge.Validate.md): Validates a `.paperforge` file without generating a PDF.

