pub struct FormManager { /* private fields */ }Expand description
Form manager for creating and managing forms
Implementations§
Source§impl FormManager
impl FormManager
Sourcepub fn add_text_field(
&mut self,
field: TextField,
widget: Widget,
options: Option<FieldOptions>,
) -> Result<ObjectReference>
pub fn add_text_field( &mut self, field: TextField, widget: Widget, options: Option<FieldOptions>, ) -> Result<ObjectReference>
Add a text field
Sourcepub fn add_combo_box(
&mut self,
combo: ComboBox,
widget: Widget,
options: Option<FieldOptions>,
) -> Result<ObjectReference>
pub fn add_combo_box( &mut self, combo: ComboBox, widget: Widget, options: Option<FieldOptions>, ) -> Result<ObjectReference>
Add a combo box field
Sourcepub fn add_list_box(
&mut self,
listbox: ListBox,
widget: Widget,
options: Option<FieldOptions>,
) -> Result<ObjectReference>
pub fn add_list_box( &mut self, listbox: ListBox, widget: Widget, options: Option<FieldOptions>, ) -> Result<ObjectReference>
Add a list box field
Add a radio button group
Sourcepub fn add_checkbox(
&mut self,
checkbox: CheckBox,
widget: Widget,
options: Option<FieldOptions>,
) -> Result<ObjectReference>
pub fn add_checkbox( &mut self, checkbox: CheckBox, widget: Widget, options: Option<FieldOptions>, ) -> Result<ObjectReference>
Add a checkbox
Add a push button
Add a radio button group
Sourcepub fn get_acro_form(&self) -> &AcroForm
pub fn get_acro_form(&self) -> &AcroForm
Get the AcroForm dictionary
Sourcepub fn get_field_mut(&mut self, name: &str) -> Option<&mut FormField>
pub fn get_field_mut(&mut self, name: &str) -> Option<&mut FormField>
Get a mutable reference to a field by name.
This is the primary entry point for mutating an AcroForm field’s
dictionary (for example, to set /V during form filling) and its
associated widgets’ appearance streams. It returns None if the
field does not exist — callers are expected to surface that as an
error to the user (see Document::fill_field).
Sourcepub fn set_default_appearance(&mut self, da: impl Into<String>)
pub fn set_default_appearance(&mut self, da: impl Into<String>)
Set default appearance for all fields
Sourcepub fn set_default_resources(&mut self, resources: Dictionary)
pub fn set_default_resources(&mut self, resources: Dictionary)
Set default resources
Source§impl FormManager
impl FormManager
Sourcepub fn field_count(&self) -> usize
pub fn field_count(&self) -> usize
Get the number of fields managed by this FormManager
Trait Implementations§
Source§impl Debug for FormManager
impl Debug for FormManager
Auto Trait Implementations§
impl Freeze for FormManager
impl RefUnwindSafe for FormManager
impl Send for FormManager
impl Sync for FormManager
impl Unpin for FormManager
impl UnsafeUnpin for FormManager
impl UnwindSafe for FormManager
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().