Skip to main content
A newer version of this page is available. .

Signing a Document

  • 2 minutes to read

This topic explains why it is necessary to sign a document and how this can be done using the PDF Document Processor.

Overview

The PDF Document Processor allows you to electronically sign a document. A digital signature is used to identify the person who had seen a document and authorized it, and also verify document integrity.

To sign a document, you need a digital certificate. The certificate protects document sensitive information from unauthorized access allowing secure document exchange over the Internet. The certificate is issued by a Certification Authority (CA). The role of the CA is to validate the holder’s identity and provide access to a certificate.

To learn how to apply a signature to a document, refer to the How to Sign document section.

Prerequisite

Before signing, the PDF Document Processor must have a document (e.g., you can load a document using the PdfDocumentProcessor.LoadDocument method).

How to Sign

Access a signing certificate.

You can either get it from a third-party certificate authority (CA) or generate the X.509 certificate with a private and public key pair using, e.g, the Makecert.exe (Certificate Creation Tool) for testing purposes only.

Create a signature and specify the signing information.

An electronic signature is represented by an instance of the PdfSignature object with the certificate. The signature can be accessed using the PdfSaveOptions.Signature property.

To help a recipient to verify the signature provided by the signer, you can specify the signer name or organization name, signing location, reason, and contact information using the PdfSignature.Name, PdfSignature.Location, PdfSignature.Reason and PdfSignature.ContactInfo properties.

In addition, you can get a signing time using the PdfSignature.SigningTime property. This property is used to validate the signature.

Save a signed document.

To accomplish this task, call the PdfDocumentProcessor.SaveDocument method and pass the PdfSaveOptions object containing a signature as a parameter.

Example

The following example shows how to sign a document using the Document Processor: How to: Add a Digital Signature into a PDF Document

See Also