pub struct SignatureObject { /* private fields */ }Expand description
A digital signature field parsed from a PDF’s AcroForm.
Corresponds to the data obtainable via the eight
FPDF_GetSignatureObject / FPDFSignatureObj_Get* functions in
PDFium’s fpdf_signature.h.
Implementations§
Source§impl SignatureObject
impl SignatureObject
Sourcepub fn contents(&self) -> Option<&[u8]>
pub fn contents(&self) -> Option<&[u8]>
The raw DER-encoded PKCS#7/CMS signature bytes from /Contents.
Returns None if the field has no /Contents entry.
Corresponds to FPDFSignatureObj_GetContents().
Sourcepub fn signature_obj_get_contents(&self) -> Option<&[u8]>
pub fn signature_obj_get_contents(&self) -> Option<&[u8]>
ADR-019 T2 alias for contents().
Corresponds to FPDFSignatureObj_GetContents.
Sourcepub fn get_contents(&self) -> Option<&[u8]>
👎Deprecated: use signature_obj_get_contents() — matches upstream FPDFSignatureObj_GetContents
pub fn get_contents(&self) -> Option<&[u8]>
use signature_obj_get_contents() — matches upstream FPDFSignatureObj_GetContents
Deprecated — use signature_obj_get_contents().
Corresponds to FPDFSignatureObj_GetContents.
Sourcepub fn byte_range(&self) -> &[(u64, u64)]
pub fn byte_range(&self) -> &[(u64, u64)]
The byte ranges that the signature covers, as (offset, length) pairs.
The /ByteRange array is a flat sequence of integers interpreted as
pairs: [offset0, length0, offset1, length1, ...]. An odd number of
elements results in the trailing element being dropped.
Corresponds to FPDFSignatureObj_GetByteRange().
Sourcepub fn signature_obj_get_byte_range(&self) -> &[(u64, u64)]
pub fn signature_obj_get_byte_range(&self) -> &[(u64, u64)]
ADR-019 T2 alias for byte_range().
Corresponds to FPDFSignatureObj_GetByteRange.
Sourcepub fn get_byte_range(&self) -> &[(u64, u64)]
👎Deprecated: use signature_obj_get_byte_range() — matches upstream FPDFSignatureObj_GetByteRange
pub fn get_byte_range(&self) -> &[(u64, u64)]
use signature_obj_get_byte_range() — matches upstream FPDFSignatureObj_GetByteRange
Deprecated — use signature_obj_get_byte_range().
Corresponds to FPDFSignatureObj_GetByteRange.
Sourcepub fn sub_filter(&self) -> Option<&str>
pub fn sub_filter(&self) -> Option<&str>
The sub-filter name from /SubFilter (e.g. "adbe.pkcs7.detached").
Returns None if the field has no /SubFilter entry.
Corresponds to FPDFSignatureObj_GetSubFilter().
Sourcepub fn signature_obj_get_sub_filter(&self) -> Option<&str>
pub fn signature_obj_get_sub_filter(&self) -> Option<&str>
ADR-019 T2 alias for sub_filter().
Corresponds to FPDFSignatureObj_GetSubFilter.
Sourcepub fn get_sub_filter(&self) -> Option<&str>
👎Deprecated: use signature_obj_get_sub_filter() — matches upstream FPDFSignatureObj_GetSubFilter
pub fn get_sub_filter(&self) -> Option<&str>
use signature_obj_get_sub_filter() — matches upstream FPDFSignatureObj_GetSubFilter
Deprecated — use signature_obj_get_sub_filter().
Corresponds to FPDFSignatureObj_GetSubFilter.
Sourcepub fn reason(&self) -> Option<&str>
pub fn reason(&self) -> Option<&str>
The human-readable signing reason from /Reason.
Returns None if the field has no /Reason entry.
Corresponds to FPDFSignatureObj_GetReason().
Sourcepub fn signature_obj_get_reason(&self) -> Option<&str>
pub fn signature_obj_get_reason(&self) -> Option<&str>
ADR-019 T2 alias for reason().
Corresponds to FPDFSignatureObj_GetReason.
Sourcepub fn get_reason(&self) -> Option<&str>
👎Deprecated: use signature_obj_get_reason() — matches upstream FPDFSignatureObj_GetReason
pub fn get_reason(&self) -> Option<&str>
use signature_obj_get_reason() — matches upstream FPDFSignatureObj_GetReason
Deprecated — use signature_obj_get_reason().
Corresponds to FPDFSignatureObj_GetReason.
Sourcepub fn time(&self) -> Option<&str>
pub fn time(&self) -> Option<&str>
The signing time string from /M (format: "D:YYYYMMDDHHmmSSOHH'mm'").
Returns None if the field has no /M entry.
Corresponds to FPDFSignatureObj_GetTime().
Sourcepub fn signature_obj_get_time(&self) -> Option<&str>
pub fn signature_obj_get_time(&self) -> Option<&str>
ADR-019 T2 alias for time().
Corresponds to FPDFSignatureObj_GetTime.
Sourcepub fn get_time(&self) -> Option<&str>
👎Deprecated: use signature_obj_get_time() — matches upstream FPDFSignatureObj_GetTime
pub fn get_time(&self) -> Option<&str>
use signature_obj_get_time() — matches upstream FPDFSignatureObj_GetTime
Deprecated — use signature_obj_get_time().
Corresponds to FPDFSignatureObj_GetTime.
Sourcepub fn signing_time(&self) -> Option<&str>
👎Deprecated: use signature_obj_get_time() — matches upstream FPDFSignatureObj_GetTime
pub fn signing_time(&self) -> Option<&str>
use signature_obj_get_time() — matches upstream FPDFSignatureObj_GetTime
Deprecated — use signature_obj_get_time().
Sourcepub fn doc_mdp_permission(&self) -> Option<DocMdpPermission>
pub fn doc_mdp_permission(&self) -> Option<DocMdpPermission>
The DocMDP permission level, if a DocMDP transform is present.
Returns None if the signature does not include a DocMDP reference.
Corresponds to FPDFSignatureObj_GetDocMDPPermission().
Sourcepub fn signature_obj_get_doc_mdp_permission(&self) -> Option<DocMdpPermission>
pub fn signature_obj_get_doc_mdp_permission(&self) -> Option<DocMdpPermission>
ADR-019 T2 alias for doc_mdp_permission().
Corresponds to FPDFSignatureObj_GetDocMDPPermission.
Sourcepub fn get_doc_mdp_permission(&self) -> Option<DocMdpPermission>
👎Deprecated: use signature_obj_get_doc_mdp_permission() — matches upstream FPDFSignatureObj_GetDocMDPPermission
pub fn get_doc_mdp_permission(&self) -> Option<DocMdpPermission>
use signature_obj_get_doc_mdp_permission() — matches upstream FPDFSignatureObj_GetDocMDPPermission
Deprecated — use signature_obj_get_doc_mdp_permission().
Corresponds to FPDFSignatureObj_GetDocMDPPermission.
Trait Implementations§
Source§impl Clone for SignatureObject
impl Clone for SignatureObject
Source§fn clone(&self) -> SignatureObject
fn clone(&self) -> SignatureObject
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for SignatureObject
impl RefUnwindSafe for SignatureObject
impl Send for SignatureObject
impl Sync for SignatureObject
impl Unpin for SignatureObject
impl UnsafeUnpin for SignatureObject
impl UnwindSafe for SignatureObject
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 more