An instance of the DigitalSignature class represents an X.509 certificate which can be used to digitally sign a PDF or PDF/A document. The DigitalSignature class is used with the SaveSettings.DigitalSignature property.

Syntax

public class DigitalSignature
Public Class DigitalSignature

Introduced: 17.0.

Examples

This example shows how to create a digital signature and use it with the TXTextControl.SaveSettings. Remember, if an empty string is specified for the TXTextControl.DigitalSignature timeServerURL parameter, the current date and time on the computer is used.

System.Security.Cryptography.X509Certificates.X509Certificate2 x509 = new System.Security.Cryptography.X509Certificates.X509Certificate2();
TXTextControl.DigitalSignature digitalSignature = new TXTextControl.DigitalSignature(x509, "");
TXTextControl.SaveSettings _ss = new TXTextControl.SaveSettings();
_ss.DigitalSignature = digitalSignature;
Dim x509 As System.Security.Cryptography.X509Certificates.X509Certificate2 = New System.Security.Cryptography.X509Certificates.X509Certificate2()
Dim digitalSignature As TXTextControl.DigitalSignature = New TXTextControl.DigitalSignature(x509, "")
Dim _ss As TXTextControl.SaveSettings = New TXTextControl.SaveSettings()
_ss.DigitalSignature = digitalSignature

Constructors

Constructor Description
DigitalSignature Initializes a new instance of the DigitalSignature class.

Further Reading

Learn more about the TXTextControl.DigitalSignature Class in the Text Control Blog: