Class PdfFileSignature

PdfFileSignature class

Represents a class to sign a pdf file with a certificate.

public sealed class PdfFileSignature : SaveableFacade

Constructors

NameDescription
PdfFileSignature()The constructor of PdfFileSignature class.
PdfFileSignature(Document)Initializes new PdfFileSignature object on base of the document.

Properties

NameDescription
Document { get; }Gets the document facade is working on.
IsCertified { get; }Gets the flag determining whether a document is certified or not.
IsLtvEnabled { get; }Gets the LTV enabled flag.
SignatureAppearance { get; set; }Sets or gets a graphic appearance for the signature. Property value represents image file name.
SignatureAppearanceStream { get; set; }Sets or gets a graphic appearance for the signature. Property value represents image stream.

Methods

NameDescription
virtual BindPdf(Document)Initializes the facade.
override BindPdf(Stream)Binds a Pdf stream for editing.
override BindPdf(string)Binds a Pdf file for editing.
Certify(string, DocMDPSignature)Certify the document with the MDP signature which is placed in already presented signature field. Before signing signature field must be empty, i.e. field must not contain signature dictionary. Thus pdf document already has signature field, you should not supply the place to stamp the signature, corresponding page and rectangle are taken from signature field which is found by signature name (see sigName parameter).
Certify(int, string, string, string, bool, Rectangle, DocMDPSignature)Certify the document with the MDP signature. Such data as signature reason, contact and location must be provided by corresponding properties of the Signature object sig.
override Close()Closes the facade.
ContainsSignature()Checks if the pdf has a digital signature or not.
ContainsUsageRights()Checks if the pdf has a usage rights or not.
CoversWholeDocument(string)Checks if the signature covers the whole document.
Dispose()Disposes the facade.
ExtractCertificate(string)Extracts signature’s single X.509 certificate as a stream.
ExtractImage(string)Extracts signature’s image.
GetAccessPermissions()Returns the access permissions value of certified document by the MDP signature type.
GetBlankSignNames()Gets the names of all empty signature fields.
GetContactInfo(string)Gets the contact information of a signature.
GetDateTime(string)Gets the signature’s datetime.
GetLocation(string)Gets the location of a signature.
GetReason(string)Gets the reason of a signature.
GetRevision(string)Gets the revision of a signature.
GetSignerName(string)Gets the name of person or organization who signing the pdf document.
GetSignNames(bool)Gets the names of all not empty signatures.
GetTotalRevision()Gets the toltal revision.
RemoveSignature(string)Remove the signature according to the name of the signature.
RemoveSignature(string, bool)Removes the signature according to the name of the signature.
RemoveSignatures()Removes all signatures.
RemoveUsageRights()Removes the usage rights entry.
override Save(Stream)Saves the result PDF to stream.
override Save(string)Saves the result PDF to file.
SetCertificate(string, string)Set certificate file and password for signing routine.
Sign(string, Signature)Sign the document with the given type signature which is placed in already presented signature field. Before signing signature field must be empty, i.e. field must not contain signature dictionary. Thus pdf document already has signature field, you should not supply the place to stamp the signature, corresponding page and rectangle are taken from signature field which is found by signature name (see SigName parameter). Such data as signature reason, contact and location must be provided by corresponding properties of the Signature object sig.
Sign(int, bool, Rectangle, Signature)Sign the document with the given type signature.
Sign(string, string, string, string, Signature)Sign the document with the given type signature which is placed in already presented signature field. Before signing signature field must be empty, i.e. field must not contain signature dictionary. Thus pdf document already has signature field, you should not supply the place to stamp the signature, corresponding page and rectangle are taken from signature field which is found by signature name (see SigName parameter).
Sign(int, string, string, string, bool, Rectangle)Make a signature on the pdf document.
Sign(int, string, string, string, bool, Rectangle, Signature)Sign the document with the given type signature.
Sign(int, string, string, string, string, bool, Rectangle, Signature)Sign the document with the given type signature which is placed in already presented signature field. Before signing pdf document should already has signature field, corresponding page and rectangle are taken from signature field which is found by signature name (see SigName parameter).
VerifySignature(string)Checks the validity of a signature.
VerifySigned(string)Checks the validity of a signature.

See Also