pub struct Field {
pub id: ObjectId,
pub fqn: String,
pub rect: Option<[f32; 4]>,
pub is_button: bool,
pub max_len: Option<usize>,
}Expand description
One terminal (leaf) AcroForm field: its object id, fully-qualified name, widget rectangle, and
whether it is a checkbox (/FT /Btn).
Fields§
§id: ObjectIdlopdf object id of the field dictionary.
fqn: StringFully-qualified, bracketed name (topmostSubform[0].Page1[0]…f1_03[0]).
rect: Option<[f32; 4]>Widget rectangle [x0, y0, x1, y1] in PDF user space, if present.
true iff /FT is /Btn (a checkbox/radio).
max_len: Option<usize>/MaxLen — the cell’s character capacity, when the form declares one (inheritable, like /FT).
The IRS forms set this on their comb cells (the SSN boxes are /MaxLen 9, comb-flagged), and
it is the PRIMARY SOURCE for how a value must be formatted: nine characters means nine bare
digits, not a hyphenated 123-45-6789, which is eleven and would be silently truncated by the
viewer. crate::verify::verify_flat enforces it on read-back, so an over-long write fails
closed instead of being quietly mangled.