Skip to main content

Module model

Module model 

Source
Expand description

Complete AcroForm model export for editor/binding consumption (C-chain).

build_form_model flattens a parsed FieldTree into a list of FormFieldModel values — one per logical field — with everything an interactive form UI needs: typed kind, per-page widget rectangles, radio on-state values, checkbox on-states, choice options, comb/multiline flags, length limits, access flags and resolved default-appearance info.

The model is deliberately plain data (no lifetimes, no arena ids) so facades and language bindings can serialize it as-is.

Structs§

DaInfo
Resolved default-appearance info for a field (from /DA, inherited).
FormFieldModel
A logical form field with everything an editor UI needs.
WidgetModel
One widget annotation of a logical field.

Enums§

FormFieldKind
The kind of a logical form field, with kind-specific data inline.

Functions§

build_form_model
Build the editor-facing model from a parsed field tree.