pub struct PdfFormSignatureField<'a> { /* private fields */ }Expand description
A single PdfFormField of type PdfFormFieldType::Signature. The form field object defines an interactive data entry widget that allows the user to draw a signature.
Form fields in Pdfium are wrapped inside page annotations of type PdfPageAnnotationType::Widget or PdfPageAnnotationType::XfaWidget. User-specified values can be retrieved directly from each form field object by unwrapping the form field from the annotation, or in bulk from the PdfForm::field_values() function.
Implementations§
Source§impl<'a> PdfFormSignatureField<'a>
impl<'a> PdfFormSignatureField<'a>
Sourcepub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
pub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
Returns the PdfiumLibraryBindings used by this PdfFormSignatureField object.
Trait Implementations§
Source§impl<'a> From<PdfFormSignatureField<'a>> for PdfFormField<'a>
impl<'a> From<PdfFormSignatureField<'a>> for PdfFormField<'a>
Source§fn from(field: PdfFormSignatureField<'a>) -> Self
fn from(field: PdfFormSignatureField<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for PdfFormSignatureField<'a>
impl<'a> !RefUnwindSafe for PdfFormSignatureField<'a>
impl<'a> !Send for PdfFormSignatureField<'a>
impl<'a> !Sync for PdfFormSignatureField<'a>
impl<'a> Unpin for PdfFormSignatureField<'a>
impl<'a> !UnwindSafe for PdfFormSignatureField<'a>
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> 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<'a, T> PdfFormFieldCommon for Twhere
T: PdfFormFieldPrivate<'a>,
impl<'a, T> PdfFormFieldCommon for Twhere
T: PdfFormFieldPrivate<'a>,
Source§fn appearance_stream(&self) -> Option<String>
fn appearance_stream(&self) -> Option<String>
Returns the name of the currently set appearance stream for this PdfFormField, if any.
Source§fn appearance_mode_value(
&self,
appearance_mode: PdfAppearanceMode,
) -> Option<String>
fn appearance_mode_value( &self, appearance_mode: PdfAppearanceMode, ) -> Option<String>
Returns the value currently set for the given appearance mode for this PdfFormField,
if any.
Source§fn is_read_only(&self) -> bool
fn is_read_only(&self) -> bool
Source§fn set_is_read_only(&mut self, is_read_only: bool) -> Result<(), PdfiumError>
fn set_is_read_only(&mut self, is_read_only: bool) -> Result<(), PdfiumError>
Controls whether or not the value of this PdfFormField is read only.
Source§fn is_required(&self) -> bool
fn is_required(&self) -> bool
Returns
true if this PdfFormField must have a value at the time it is exported
by any “submit form” action. Read moreSource§fn set_is_required(&mut self, is_required: bool) -> Result<(), PdfiumError>
fn set_is_required(&mut self, is_required: bool) -> Result<(), PdfiumError>
Controls whether or not this PdfFormField must have a value at the time it is
exported by any “submit form” action. Read more
Source§fn is_exported_on_submit(&self) -> bool
fn is_exported_on_submit(&self) -> bool
Returns
true if the value of this PdfFormField will be exported by any
“submit form” action. Read moreSource§fn set_is_exported_on_submit(
&mut self,
is_exported: bool,
) -> Result<(), PdfiumError>
fn set_is_exported_on_submit( &mut self, is_exported: bool, ) -> Result<(), PdfiumError>
Controls whether or not the value of this PdfFormField will be exported by any
“submit form” action. Read more