pub struct SignatureHandler { /* private fields */ }Expand description
Handler for managing signature fields in a document
Implementations§
Source§impl SignatureHandler
impl SignatureHandler
Sourcepub fn with_settings(settings: SignatureSettings) -> Self
pub fn with_settings(settings: SignatureSettings) -> Self
Create with custom settings
Sourcepub fn add_signature_field(
&mut self,
field: SignatureField,
) -> Result<(), PdfError>
pub fn add_signature_field( &mut self, field: SignatureField, ) -> Result<(), PdfError>
Add a signature field
Sourcepub fn get_field(&self, name: &str) -> Option<&SignatureField>
pub fn get_field(&self, name: &str) -> Option<&SignatureField>
Get a signature field by name
Sourcepub fn get_field_mut(&mut self, name: &str) -> Option<&mut SignatureField>
pub fn get_field_mut(&mut self, name: &str) -> Option<&mut SignatureField>
Get mutable signature field by name
Sourcepub fn sign_field(
&mut self,
field_name: &str,
signer: SignerInfo,
reason: Option<String>,
) -> Result<(), PdfError>
pub fn sign_field( &mut self, field_name: &str, signer: SignerInfo, reason: Option<String>, ) -> Result<(), PdfError>
Sign a field
Sourcepub fn validate_all(&self) -> Vec<ValidationResult>
pub fn validate_all(&self) -> Vec<ValidationResult>
Validate all signatures in the document
Sourcepub fn is_field_locked(&self, field_name: &str) -> bool
pub fn is_field_locked(&self, field_name: &str) -> bool
Check if a field is locked
Sourcepub fn get_unsigned_required_fields(&self) -> Vec<String>
pub fn get_unsigned_required_fields(&self) -> Vec<String>
Get all unsigned required fields
Sourcepub fn all_required_signed(&self) -> bool
pub fn all_required_signed(&self) -> bool
Check if all required signatures are present
Sourcepub fn get_signing_order(&self) -> Vec<String>
pub fn get_signing_order(&self) -> Vec<String>
Get signing order based on dependencies
Sourcepub fn export_to_dict(&self) -> Dictionary
pub fn export_to_dict(&self) -> Dictionary
Export signature fields to PDF dictionary format
Sourcepub fn generate_summary(&self) -> SignatureSummary
pub fn generate_summary(&self) -> SignatureSummary
Create a signature summary report
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SignatureHandler
impl RefUnwindSafe for SignatureHandler
impl Send for SignatureHandler
impl Sync for SignatureHandler
impl Unpin for SignatureHandler
impl UnwindSafe for SignatureHandler
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().