TX Text Control .NET for WPF

DigitalSignature Property

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

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