TX Text Control .NET for Windows Forms

Digital Signature Examples

Topic

Signing a PDF document with TX Text Control happens when the document is saved: SaveSettings.DigitalSignature signs the whole document, and SaveSettings.SignatureFields signs individual signature fields. Because the calls are the same in every .NET product of TX Text Control, the examples below come from console applications and blog articles; there is no Windows Forms sample on GitHub. Digitally Sign a PDF shows the same steps in a Windows Forms application.

Sample Project

ExampleWhat it showsWhere
Signing in a console applicationA whole document and a SignatureField with a SignatureImage signed with the certificate of a PFX file, as described in Digitally Signing Adobe PDF Documents. A console application for TX Text Control .NET Server: .NET 8, version 33.0, C#TextControl.Core.CommandLine.Signing

To use its code in a Windows Forms project, reference TXTextControl.TextControl.WinForms.SDK instead of the package of TX Text Control .NET Server, and save from the TextControl of your form or from a ServerTextControl.

Blog Articles With Code

These articles use ServerTextControl and the class DigitalSignature, which are part of TX Text Control .NET for Windows Forms as well:

ExampleWhat it showsWhere
Document or signature fieldsThe difference between signing a whole PDF document and signing its signature fieldsUnderstanding the Differences: Signing a PDF Document vs. Signing Signature Fields in a PDF in C#
Test certificatesA self-signed certificate created on Windows and used to sign PDF documentsHow to Create Self-Signed Certificates on Windows to Sign PDFs in .NET C#
Trusted timestampsSignatures that carry a timestamp from a timestamp serverBuilding Long-Term Trust with Digital Signatures and Timestamps in C# .NET
Signed PDF/A documentsPDF/A documents signed with a self-signed certificateDigitally Sign PDF/A Documents with Self-Signed Certificates

Next Steps