Click or drag to resize

PdfDocumentSignature Class

The PdfDocumentSignature class represents the data needed for applying a digital signature to an existing SignatureWidgetAnnotation object in a PdfDocument. This means that the SignatureWidgetAnnotation must already exist in the PagesOfAnnotations property in the PdfDocumentSigner either because it was pre-existing in the original document or that the document allowed it to be added.
Inheritance Hierarchy
SystemObject
  Atalasoft.PdfDoc.DigitalSignaturesBaseSignature
    Atalasoft.PdfDoc.DigitalSignaturesPdfDocumentSignature

Namespace:  Atalasoft.PdfDoc.DigitalSignatures
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public class PdfDocumentSignature : BaseSignature

The PdfDocumentSignature type exposes the following members.

Constructors
  NameDescription
Public methodPdfDocumentSignature
Initializes a new instance of the PdfDocumentSignature class.
Top
Properties
  NameDescription
Public propertyAutoGenerateSignatureAppearance
Gets or sets a value indicating whether DotPdf should automatically generate the signature's AppearanceSet.
Public propertyCmsInformation
Gets or sets the CMS information used to sign the document including the signatures.
(Inherited from BaseSignature.)
Public propertyIsVisible
Gets or sets a value indicating whether the signature is visible.
(Inherited from BaseSignature.)
Public propertySignatureWidget
Gets the signature widget that will be used for signing.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodMakeRepairContext
Makes the repair context for repairing problems in this object. An object implementing IValidatable should at least return an empty RepairContext object.
(Inherited from BaseSignature.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodValidate
Validates the object and accumulates any problems in the problems list.
(Inherited from BaseSignature.)
Top
Examples
This example shows how you can sign a document using PdfDocumentSignature.
public void SignDoc(PdfDocumentSigner signer, SignatureWidgetAnnotation annot, CmsInformation cmsInfo)
{
    PdfDocumentSignature signature = new PdfDocumentSignature(cmsInfo, signature, true, true);
    signer.SignAndSave(new PdfDocumentSignature[] { signature } );
}
See Also