PdfSaveOptions.DigitalSignatureDetails
Contents
[
Hide
]PdfSaveOptions.DigitalSignatureDetails property
Gets or sets a digital signature details. If not set, then no signing will be performed.
public PdfDigitalSignatureDetails DigitalSignatureDetails { get; set; }
Examples
Shows how to set a digital signature details. If not set, then no signing will be performed.
var project = new Project(DataDir + "EstimatedMilestoneTasks.mpp");
var options = new PdfSaveOptions();
var certificate = new X509Certificate2();
// set a digital signature details. If not set, then no signing will be performed.
options.DigitalSignatureDetails = new PdfDigitalSignatureDetails(
certificate,
"reason",
"location",
new DateTime(2019, 1, 1),
PdfDigitalSignatureHashAlgorithm.Sha1);
// tune additional properties
// set the <see cref="P:Aspose.Tasks.Saving.SaveOptions.PresentationFormat" /> in which the document will be saved.
options.PresentationFormat = PresentationFormat.GanttChart;
// set a desired conformance level for generated PDF document
options.Compliance = PdfCompliance.PdfA1b;
project.Save(OutDir + "WorkWithDigitalSignatureDetails_out.pdf", options);
See Also
- class PdfDigitalSignatureDetails
- class PdfSaveOptions
- namespace Aspose.Tasks.Saving
- assembly Aspose.Tasks