NativeElixirPdfUtilities.Validators.HtmlLinkValidator (native_elixir_pdf_utilities v1.1.0)

View Source

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

Prepared identities include separate document, tree and node references. A hidden first target remains selected but has no PDF destination. Missing targets also have no annotation. Empty fragments and unmatched ASCII top select the beginning of the document. Final destinations use PDF bottom-left points.

Summary

Types

context()

@type context() :: %{
  document_id: reference(),
  tree_scope_id: reference(),
  ids: map(),
  names: map(),
  links: map(),
  selected: MapSet.t(),
  document_targets: [map()]
}

destination()

@type destination() :: {:xyz, pos_integer(), number(), number()}

identity()

@type identity() :: {reference(), reference(), reference()}