NativeElixirPdfUtilities.Validators.FormAppearanceValidator (native_elixir_pdf_utilities v1.1.0)

View Source

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

Summary

Functions

Prepares genuine source text with the original byte fonts, editor size/color/padding and shared layout/clip rules.

Captures genuine resolved editor font and geometry before field projection, including an initially empty editor.

Serializes only source producer editor facts and approved full font bytes into ordinary PDF objects.

Loads a persisted source editor through canonical font/style/geometry validation, without font discovery or resolution.

Validates the closed resolved text input before the shared inline painter measures glyphs.

Retains the same genuine editor frame under canonical field projection; fonts and source geometry stay source-local.

Validates exact editor paint facts and selected full byte font programs before source glyph layout.

Functions

appearance(field, editor, value)

@spec appearance(map(), map(), term()) :: {:ok, map()} | {:error, {atom(), map()}}

Prepares genuine source text with the original byte fonts, editor size/color/padding and shared layout/clip rules.

capture(field, control)

@spec capture(map(), map()) :: map() | nil

Captures genuine resolved editor font and geometry before field projection, including an initially empty editor.

encode_controls(controls, next)

@spec encode_controls([map()], pos_integer()) ::
  {:ok, [map()], [tuple()], pos_integer()} | {:error, {atom(), map()}}

Serializes only source producer editor facts and approved full font bytes into ordinary PDF objects.

prepare(document, value)

@spec prepare(map(), term()) :: {:ok, map() | nil} | {:error, {atom(), map()}}

Loads a persisted source editor through canonical font/style/geometry validation, without font discovery or resolution.

prepare_paint(nodes, style, editor)

@spec prepare_paint([map()], map(), map()) :: {:ok, map()} | {:error, {atom(), map()}}

Validates the closed resolved text input before the shared inline painter measures glyphs.

project_field(field, matrix, polygons, bounds)

@spec project_field(map(), tuple(), [[tuple()]], tuple()) :: map()

Retains the same genuine editor frame under canonical field projection; fonts and source geometry stay source-local.

validate(editor)

@spec validate(term()) :: {:ok, map()} | {:error, {atom(), map()}}

Validates exact editor paint facts and selected full byte font programs before source glyph layout.