TX Text Control .NET for WPF

Digital Signature Examples

Topic

A WPF application signs a PDF document when it saves it: SaveSettings.DigitalSignature signs the whole document, and SaveSettings.SignatureFields signs individual signature fields. No sample of Text Control is a WPF application that signs documents, but the calls are the same in every .NET product of TX Text Control, so the console sample and the articles below apply directly.

Sample Project

ExampleWhat it showsWhere
Signing in a console applicationA whole document and a SignatureField 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 WPF project, reference TXTextControl.TextControl.WPF.SDK instead of the package of TX Text Control .NET Server, and save from the TextControl of your window or from a ServerTextControl. PDF Examples lists a sample that signs a PDF document to protect its watermark.

Blog Articles With Code

These articles use ServerTextControl and the class DigitalSignature, which are part of TX Text Control .NET for WPF 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#
Smart card certificatesA certificate picked by the user from the Windows certificate store, for example on a smart card, and used to signSigning PDF Documents with Smart Card Certificates 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#
A digital ID from Acrobat ReaderA self-signed digital ID created in Adobe Acrobat Reader and used to signSign Documents with a Self-Signed Digital ID From Adobe Acrobat Reader in .NET C#
Trusted timestampsSignatures that carry a timestamp from a timestamp serverBuilding Long-Term Trust with Digital Signatures and Timestamps in C# .NET

Next Steps