Click or drag to resize
Pdftools logo

Signer Class

Process signatures and signature fields

Inheritance Hierarchy

Namespace: PdfTools.Sign
Assembly: PdfTools (in PdfTools.dll) Version: 1.1.0.0
Syntax
C#
public class Signer : NativeObject

The Signer type exposes the following members.

Constructors
 NameDescription
Public methodSigner 
Top
Methods
 NameDescription
Public methodAddPreparedSignature

Add a prepared signature

Adding a prepared signature is only required in very particular or specialized use cases. This method is the same as Sign(Document, SignatureConfiguration, Stream, OutputOptions), but without actually creating the cryptographic signature. The cryptographic signature can be inserted later using SignPreparedSignature(Document, SignatureConfiguration, Stream).

While the configuration can be created by any Provider, it is typically created by CreatePreparedSignature(Int32, String, String).

Public methodAddSignatureField

Add an unsigned signature field

Add an unsigned signature field that can later be signed (see UnsignedSignatureField).

Non-critical processing errors raise a Warning. It is recommended to review the WarningCategory and handle them if necessary for the application.

Public methodAddTimestamp

Add a document time-stamp

This type of signature provides evidence that the document existed at a specific time and protects the document’s integrity.

The features and format of the signature are defined by the Provider and the configuration.

Non-critical processing errors raise a Warning. It is recommended to review the WarningCategory and handle them if necessary for the application.

Public methodCertify

Add a document certification signature

This type of signature lets you detect rejected changes specified by the author. These signatures are also called Modification Detection and Prevention (MDP) signatures. The allowed permissions are defined by permissions.

The features and format of the signature are defined by the Provider and the configuration.

Non-critical processing errors raise a Warning. It is recommended to review the WarningCategory and handle them if necessary for the application.

Public methodEquals
(Inherited from NativeObject)
Public methodGetHashCode
(Inherited from NativeObject)
Public methodProcess

Process a document

Apply document-level processing options without any signature operation. For example:

  • To encrypt or decrypt PDF documents that may be signed (see the samples "Encrypt" and "Decrypt").
  • To remove signatures and unsigned signature fields (see RemoveSignatures).
  • To add validation information to existing signatures (see AddValidationInformation).

Non-critical processing errors raise a Warning. It is recommended to review the WarningCategory and handle them if necessary for the application.

Public methodSign

Add a document signature

Document signatures are sometimes also called approval signatures. This type of signature lets you verify the integrity of the signed part of the document and authenticate the signer’s identity.

The features and format of the signature are defined by the Provider and the configuration.

Non-critical processing errors raise a Warning. It is recommended to review the WarningCategory and handle them if necessary for the application.

Public methodSignPreparedSignature

Sign a prepared signature

Sign a document that contains a prepared signature created using AddPreparedSignature(Document, SignatureConfiguration, Stream, OutputOptions). Note that the configuration must be compatible to the configuration used when preparing the signature.
Top
Events
 NameDescription
Public eventWarning

Event for non-critical errors occurring during signature processing

Top
See Also