PdfDigitalSignatureDetails Class |
Namespace: Aspose.Tasks.Saving
The PdfDigitalSignatureDetails type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | PdfDigitalSignatureDetails |
Initializes a new instance of the PdfDigitalSignatureDetails class.
|
Name | Description | |
---|---|---|
![]() ![]() | Certificate |
Gets or sets the certificate to sign with.
|
![]() ![]() | HashAlgorithm |
Gets or sets the hash algorithm.
|
![]() ![]() | Location |
Gets or sets the location of signing.
|
![]() ![]() | Reason |
Gets or sets the reason of signing.
|
![]() ![]() | SignatureDate |
Gets or sets the date of signing.
|
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
var project = new Project(DataDir + "CreateProject2.mpp"); var options = new PdfSaveOptions(); var certificate = new X509Certificate2(); // create PDF signature details var signatureDetails = new PdfDigitalSignatureDetails( // specify certificate certificate, // specify a reason of signing "reason", // specify a location of signing "location", // specify a date of signing new DateTime(2019, 1, 1), // specify a hash algorithm of signing PdfDigitalSignatureHashAlgorithm.Sha1); Console.WriteLine("Certificate: " + signatureDetails.Certificate); Console.WriteLine("Reason: " + signatureDetails.Reason); Console.WriteLine("Location: " + signatureDetails.Location); Console.WriteLine("Signature Date: " + signatureDetails.SignatureDate); Console.WriteLine("Hash Algorithm: " + signatureDetails.HashAlgorithm); // set digital signature details options.DigitalSignatureDetails = signatureDetails; // save the project with specified encryption details project.Save(OutDir + "WorkWithPdfEncryptionDetails_out.pdf", options);