pub struct FormField {
pub name: String,
pub field_type: FieldType,
pub value: Option<String>,
pub default_value: Option<String>,
pub bbox: BBox,
pub options: Vec<String>,
pub flags: u32,
pub page_index: Option<usize>,
}Expand description
A PDF form field extracted from the document’s AcroForm dictionary.
Represents a single interactive form field with its name, type, value, and visual position on the page.
Fields§
§name: StringField name from /T entry. Hierarchical fields join names with ..
field_type: FieldTypeField type from /FT entry.
value: Option<String>Current value from /V entry.
default_value: Option<String>Default value from /DV entry.
bbox: BBoxBounding box from /Rect entry.
options: Vec<String>Options for choice fields from /Opt entry.
flags: u32Field flags from /Ff entry (bitmask).
page_index: Option<usize>The 0-based page index this field belongs to, if determinable.
Trait Implementations§
impl StructuralPartialEq for FormField
Auto Trait Implementations§
impl Freeze for FormField
impl RefUnwindSafe for FormField
impl Send for FormField
impl Sync for FormField
impl Unpin for FormField
impl UnsafeUnpin for FormField
impl UnwindSafe for FormField
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more