PdfFileSignature Class
Represents a class to sign a pdf file with a certificate.
Inheritance Hierarchy

Namespace: Aspose.Pdf.Facades
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 19.10
Syntax
public sealed class PdfFileSignature : SaveableFacade

The PdfFileSignature type exposes the following members.

Constructors
  NameDescription
Public methodPdfFileSignature
The constructor of PdfFileSignature class.
Public methodPdfFileSignature(String) Obsolete.
The constructor of PdfFileSignature class.
Public methodPdfFileSignature(Document)
Initializes new PdfFileSignature object on base of the document.
Public methodPdfFileSignature(String, String) Obsolete.
The constructor of PdfFileSignature class.
Public methodPdfFileSignature(Document, String) Obsolete.
Initializes new PdfFileSignature object on base of the document.
Properties
  NameDescription
Public propertyDocument
Gets the document facade is working on.
(Inherited from Facade.)
Public propertyIsCertified
Gets the flag determining whether a document is certified or not.
Public propertySignatureAppearance
Sets or gets a graphic appearance for the signature. Property value represents image file name.
Public propertySignatureAppearanceStream
Sets or gets a graphic appearance for the signature. Property value represents image stream.
Methods
  NameDescription
Public methodBindPdf(Stream)
Binds a Pdf stream for editing.
(Overrides FacadeBindPdf(Stream).)
Public methodBindPdf(String)
Binds a Pdf file for editing.
(Overrides FacadeBindPdf(String).)
Public methodBindPdf(Document)
Initializes the facade.
(Inherited from Facade.)
Public methodCertify
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.
Public methodClose
Closes the facade.
(Overrides FacadeClose.)
Public methodContainsSignature
Checks if the pdf has a digital signature or not.
Public methodContainsUsageRights
Checks if the pdf has a usage rights or not.
Public methodCoversWholeDocument
Checks if the signature covers the whole document.
Public methodDispose
Disposes the facade.
(Inherited from Facade.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExtractCertificate
Extracts signature's single X.509 certificate as a stream.
Public methodExtractImage
Extracts signature's image.
Public methodGetAccessPermissions
Returns the access permissions value of certified document by the MDP signature type.
Public methodGetBlankSignNames
Gets the names of all empty signature fields.
Public methodGetContactInfo
Gets the contact information of a signature.
Public methodGetDateTime
Gets the signature's datetime.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLocation
Gets the location of a signature.
Public methodGetReason
Gets the reason of a signature.
Public methodGetRevision
Gets the revision of a signature.
Public methodGetSignerName
Gets the name of person or organization who signing the pdf document.
Public methodCode exampleGetSignNames
Gets the names of all not empty signatures.
Public methodGetTotalRevision
Gets the toltal revision.
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodIsContainSignature Obsolete.
Checks if the pdf has a digital signature or not.
Public methodIsCoversWholeDocument Obsolete.
Checks if the signature covers the whole document.
Public methodCode exampleRemoveSignature(String)
Remove the signature according to the name of the signature.
Public methodCode exampleRemoveSignature(String, Boolean)
Removes the signature according to the name of the signature.
Public methodRemoveUsageRights
Removes the usage rights entry.
Public methodSave Obsolete.
Save signed pdf file. Output filename must be provided before with the help of coresponding PdfFileSignature constructor.
Public methodSave(Stream)
Saves the result PDF to stream.
(Overrides SaveableFacadeSave(Stream).)
Public methodSave(String)
Saves the result PDF to file.
(Overrides SaveableFacadeSave(String).)
Public methodSetCertificate
Set certificate file and password for signing routine.
Public methodCode exampleSign(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.
Public methodCode exampleSign(Int32, Boolean, Rectangle, Signature)
Sign the document with the given type signature.
Public methodCode exampleSign(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).
Public methodCode exampleSign(Int32, String, String, String, Boolean, Rectangle)
Make a signature on the pdf document.
Public methodCode exampleSign(Int32, String, String, String, Boolean, Rectangle, Signature)
Sign the document with the given type signature.
Public methodCode exampleSign(Int32, String, String, String, String, Boolean, 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).
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodVerifySignature
Checks the validity of a signature.
Public methodVerifySigned
Checks the validity of a signature.
See Also