NativeElixirPdfUtilities.Validators.WriterValidator (native_elixir_pdf_utilities v0.13.0)

View Source

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

Successful preparation returns pages and normalized metadata that the byte writer can serialize without revalidating the page model.

Summary

Types

Validated input consumed by the PDF byte writer.

Functions

Validates pages and writer options and normalizes document metadata.

Types

context()

@type context() :: %{pages: [map()], metadata: map()}

Validated input consumed by the PDF byte writer.

Functions

prepare(pages, opts)

@spec prepare(term(), term()) ::
  {:ok, context()}
  | {:error, {atom(), NativeElixirPdfUtilities.Diagnostics.diagnostic()}}

Validates pages and writer options and normalizes document metadata.