pub struct PdfFormCheckboxField<'a> { /* private fields */ }Expand description
A single PdfFormField of type PdfFormFieldType::Checkbox. The form field object defines
an interactive checkbox widget that can be toggled by the user.
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> PdfFormCheckboxField<'a>
impl<'a> PdfFormCheckboxField<'a>
sourcepub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
pub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
Returns the PdfiumLibraryBindings used by this PdfFormCheckboxField object.
sourcepub fn is_checked(&self) -> Result<bool, PdfiumError>
pub fn is_checked(&self) -> Result<bool, PdfiumError>
Returns true if this PdfFormCheckboxField object has its checkbox checked.
Trait Implementations§
source§impl<'a> From<PdfFormCheckboxField<'a>> for PdfFormField<'a>
impl<'a> From<PdfFormCheckboxField<'a>> for PdfFormField<'a>
source§fn from(field: PdfFormCheckboxField<'a>) -> Self
fn from(field: PdfFormCheckboxField<'a>) -> Self
Converts to this type from the input type.