PdfFormField

One terminal interactive-form field (ISO 32000-1 §12.7.3), flattened from the AcroForm field tree with inheritable attributes (/FT, /DA, /Ff, /V, /Q) resolved down from ancestors.

A field and its single widget annotation are frequently merged into one dictionary; when they are separate (e.g. one logical field with widgets on several pages) fieldReference and widgetReference differ. The writer's form-fill uses these references plus rect (the widget's /Rect) to set the value and regenerate the appearance.

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Properties

Link copied to clipboard

Variable-text default appearance string (/DA), inherited if absent.

Link copied to clipboard

Indirect reference to the field dictionary, for editing.

Link copied to clipboard
val flags: Int

Field flags (/Ff), inherited if absent.

Link copied to clipboard

Fully-qualified name: ancestor partial names joined by '.'.

Link copied to clipboard

/Ff bit 13 (text fields) — multi-line.

Link copied to clipboard

/Ff bit 1 — the field is read-only.

Link copied to clipboard

This field's own /T, or null for an anonymous node.

Link copied to clipboard

Quadding for variable text (/Q): 0 left, 1 centre, 2 right.

Link copied to clipboard

The widget's /Rect, or null when this terminal field has no widget.

Link copied to clipboard
Link copied to clipboard

/V rendered as text (text fields) or the selected name (buttons/choices).

Link copied to clipboard

Indirect reference to the widget annotation (== fieldReference when merged).

Functions

Link copied to clipboard
open override fun toString(): String