TX Text Control .NET Server

DigitalSignature Property

Property|Introduced in 17.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

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; }

Examples

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);