API Reference native_elixir_pdf_utilities v#1.1.0

View Source

Modules

Embeds caller-approved files and lists existing PDF attachments.

Builds consistent diagnostics for public API errors.

Inspects, fills and flattens supported AcroForm fields in existing PDFs.

Public facade for native HTML/CSS to PDF rendering.

Source CSS border contour measurement and finite initial dash artwork.

Strict CSS parser for the native HTML-to-PDF renderer.

Shared drawing coordinates for validated writer boxes and logical annotations.

Loads authorized child HTML into an isolated document descriptor.

Native child document surfaces with isolated styles and shared render budgets.

Font loading, fallback resolution, text measurement, and PDF text encoding.

Resolves styled text graphemes to fonts before layout and PDF writing.

Static artwork for validator-prepared HTML gauges.

Builds an initial composed projection from authored declarative shadow trees.

Strict HTML parser for the native HTML-to-PDF renderer.

Clones actual selected option child subtrees into initial selected-content nodes.

Geometry for validator-prepared image maps, with ordered masks, even-odd polygons and clipped PDF quadrilaterals.

Layout engine for the native HTML-to-PDF renderer.

Adds opt-in running headers and footers to already paginated layout boxes.

Shared page-option cascade helpers and vertical layout-box geometry.

Pagination stage for the native HTML-to-PDF renderer.

PDF writer stage for the native HTML-to-PDF renderer.

Internal resource scope for local embedded documents.

Style computation for the native HTML-to-PDF renderer.

Reads PDF document information and page geometry and updates common metadata.

Runtime resource limits used by PDF parsing, information access, text extraction, merging, page transforms, splitting, and HTML-to-PDF rendering.

PDF utilities for merging documents through the shared native reader.

Reads, writes, and detects PDF document outlines.

Converts glyph names used by supported PDF simple-font encodings to Unicode.

Shared PDF incremental-object representation.

Strict, native PDF object reader shared by PDF utilities.

Rebuilds one PDF as multiple valid PDF documents.

Adds text, watermarks, page numbers, and PDF-page overlays to existing PDFs.

Strict native extraction of embedded Unicode text from PDF documents.

A PDF tokenizer in pure Elixir.

Rebuilds PDFs with selected, reordered, deleted, or rotated pages.

MathML compatibility interface to the shared CSS calculation validator.

Shared bounded CSS calculations with dimensional arithmetic and the Values 4 numeric functions.

Resolves validated CSS positions against actual fitted or background image space.

Owns shared calculated box dimensions and computed root sizing metadata.

Canonical static CSS affine transforms, measured origins and paginated paint scopes.

Validator-owned issued child fields and their real clipped PDF appearance geometry.

Canonical closed source editor geometry and embedded font programs for ordinary field appearances.

Initial authored nonmodal dialog state and its HTML user-agent defaults.

Prepares the initial static progress and meter state from the pinned HTML Standard.

HTML font and body presentation hints before the authored CSS cascade.

Selects HTML fragment targets in one document tree and resolves their final paginated positions. Preparation never grants resource permissions.

Validates inert HTML microdata syntax and resolves translation metadata.

Evaluates static HTML patterns with ECMAScript Unicode-v and UTF-16 semantics.

Validates CSS quotation pairs and resolves authored quote generation.

Prepares static document URLs independently of resource authorization.

Native HTML validation, stage input contracts and shared resource accounting.

Initial HTML hidden-until-found content and box applicability.

Canonical scoped HTML image-map association, area parsing and ordered hit testing.

Validation and normalization for PDF information inspection and updates.

Prepares operator semantics and Chromium-compatible authored MathML lengths.

Parses media query boolean structure before evaluating feature predicates.

Merge-specific validation and rewrite preparation.

Validation and selection of local object and embedded-document sources.

Validation and normalization for PDF document outlines.

Owns renderer page-size and margin grammar and canonical option admission.

Shared semantic validation for parsed PDF documents.

Media predicates share one bounded grammar. Lengths are CSS pixels. Stylesheet media dimensions describe the requested page box before CSS @page size. The legacy responsive source-size context uses the effective printable area. Embedded media dimensions include gutters; client layout is separate.

Authorizes embedded sources before asset mappings, caches, callbacks or reads.

Canonical static image selection from the pinned HTML Standard of 2026-10-05, sections 4.8.4.3.5 through 4.8.4.3.12. Invalid candidate descriptors are discarded by the standard's parser. Duplicate normalized densities retain the first URL. The standard leaves candidate choice implementation-defined. This renderer chooses the smallest density at least the print density, or the largest available. Selection never reads resources, retries failed candidates, or changes authorization.

Resolves initial source-size and selected element font metrics through one calculation.

Text-extraction validation and preparation for parsed PDF documents.

Semantic validation and normalization for the low-level PDF writer.