pub struct PDAcroForm {
pub acro_form_dict: COSDictionary,
}Expand description
Interactive AcroForm management and form flattening.
Fields§
§acro_form_dict: COSDictionaryImplementations§
Source§impl PDAcroForm
impl PDAcroForm
Sourcepub fn from_doc(doc: &PDDocument) -> Option<Self>
pub fn from_doc(doc: &PDDocument) -> Option<Self>
Loads the AcroForm from the document catalog if present.
Sourcepub fn fields(&self, doc: &PDDocument) -> Vec<PDFormField>
pub fn fields(&self, doc: &PDDocument) -> Vec<PDFormField>
Lists all form fields in the document.
Sourcepub fn set_field_value(
&mut self,
doc: &mut PDDocument,
name: &str,
value: &str,
) -> PdfResult<()>
pub fn set_field_value( &mut self, doc: &mut PDDocument, name: &str, value: &str, ) -> PdfResult<()>
Sets the value of a field by its fully-qualified name (/T).
Sourcepub fn flatten(&mut self, doc: &mut PDDocument) -> PdfResult<()>
pub fn flatten(&mut self, doc: &mut PDDocument) -> PdfResult<()>
Flattens all form fields into page content streams and removes interactive fields.
Trait Implementations§
Source§impl Clone for PDAcroForm
impl Clone for PDAcroForm
Source§fn clone(&self) -> PDAcroForm
fn clone(&self) -> PDAcroForm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PDAcroForm
impl RefUnwindSafe for PDAcroForm
impl Send for PDAcroForm
impl Sync for PDAcroForm
impl Unpin for PDAcroForm
impl UnsafeUnpin for PDAcroForm
impl UnwindSafe for PDAcroForm
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