Rendro.FormField (Rendro v0.3.0)

Copy Markdown View Source

Interactive form field content with deterministic authoring defaults.

Supported widget families stay intentionally narrow: text fields, checkboxes, radio widgets, and unsigned signature placeholders only. Authoring-time editing appearance configuration is currently limited to the built-in Helvetica path. Signature-specific authored state beyond the visible placeholder contract is preserved only on a narrow rejection-only carrier so validation can fail it before render.

Summary

Types

Supported AcroForm widget families exposed through Rendro's form-field builders.

t()

Types

editing_font()

@type editing_font() :: String.t()

field_type()

@type field_type() :: :text | :checkbox | :radio | :signature

Supported AcroForm widget families exposed through Rendro's form-field builders.

signature_rejection()

@type signature_rejection() :: {signature_rejection_key(), term()}

signature_rejection_key()

@type signature_rejection_key() ::
  :reason
  | :location
  | :contact
  | :signing_date
  | :lock
  | :seed_value
  | :certification
  | :filter
  | :subfilter
  | :byte_range
  | :contents
  | :reference

signature_rejections()

@type signature_rejections() :: [signature_rejection()]

t()

@type t() :: %Rendro.FormField{
  checked: boolean(),
  export_value: String.t(),
  font: editing_font(),
  group: String.t() | nil,
  name: String.t(),
  signature_rejections: signature_rejections(),
  size: number(),
  type: field_type(),
  value: String.t()
}