DigitalSignature Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Specifies a DigitalSignature object, which defines an X.509 certificate. This certificate can be used to digitally sign a PDF or a PDF/A file. For other formats this property has no meaning.
Syntax
public DigitalSignature DigitalSignature { get; set; }Public Property DigitalSignature As DigitalSignatureExamples
The following example signs the complete PDF with an X.509 certificate supplied by the application's secure certificate-loading code.
textControl.Text = "Approved quarterly report";
SaveSettings saveSettings = new()
{
DigitalSignature = new DigitalSignature(certificate, null)
};
textControl.Save("approved-report.pdf", StreamType.AdobePDF, saveSettings);textControl.Text = "Approved quarterly report"
Dim saveSettings As New SaveSettings() With {
.DigitalSignature = New DigitalSignature(certificate, Nothing)
}
textControl.Save("approved-report.pdf", StreamType.AdobePDF, saveSettings)