Expand description
PDF interactive form fields (AcroForm).
AcroForm declares interactive fields — text inputs, checkboxes,
radio buttons, choice lists, signatures — at the document level.
Each terminal field has a fully-qualified name (parent names joined
with .) and one or more widget annotations that give it a
visible presence on a page.
FormCatalog is the top-level container; FormField is a
single field (terminal or non-terminal container) with type-tagged
data in FieldKind.
§Cross-linking with annotations
Each terminal field carries a list of widget object numbers
(FormField::widget_obj_nums). Consumers that want the
corresponding Annotation data look up matching annotations on
each page via PdfDocument::page_annotations; the annotation
whose source object number equals the widget’s is the one to use.
Structs§
- Button
Field /FT /Btn— pushbutton, checkbox, or radio button.- Choice
Field /FT /Ch— list box or combo box.- Choice
Option - One entry in
/Opt. - Field
Flags /Ffflags shared by all field types.- Form
Catalog - Top-level AcroForm dictionary.
- Form
Field - One form field — terminal (has a value) or non-terminal (container).
- SigFlags
/SigFlagsbit field.- Signature
Field /FT /Sig— digital signature.- Text
Field /FT /Tx— text input.
Enums§
- Button
Type - Resolved button kind (pre-classified for caller convenience).
- Field
Kind - Field type plus subtype-specific data.
- Field
Value - Field value. PDF stores values type-erased; the form-walker maps
each
/V(or/DV) to one of these variants based on the field type and the value’s PDF type.
Functions§
- parse_
acroform - Parse the document’s
/AcroFormif present.