Struct pdfium_render::form_field_text::PdfFormTextField
source · pub struct PdfFormTextField<'a> { /* private fields */ }Expand description
A single PdfFormField of type PdfFormFieldType::Text. The form field object defines
an interactive data entry widget that allows the user to enter data by typing.
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> PdfFormTextField<'a>
impl<'a> PdfFormTextField<'a>
sourcepub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
pub fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
Returns the PdfiumLibraryBindings used by this PdfFormTextField object.
sourcepub fn value(&self) -> Option<String>
pub fn value(&self) -> Option<String>
Returns the value assigned to this PdfFormTextField object, if any.
Trait Implementations§
source§impl<'a> From<PdfFormTextField<'a>> for PdfFormField<'a>
impl<'a> From<PdfFormTextField<'a>> for PdfFormField<'a>
source§fn from(field: PdfFormTextField<'a>) -> Self
fn from(field: PdfFormTextField<'a>) -> Self
Converts to this type from the input type.