All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

PdfSignatureFieldInfo(Int32) Constructor

Initializes a new instance of the PdfSignatureFieldInfo class with specified settings.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v21.1.Core.dll

Declaration

public PdfSignatureFieldInfo(
    int pageNumber
)

Parameters

Name Type Description
pageNumber Int32

A number of the page to place the signature field.

Remarks

The code sample below shows how to create and sign a new signature form field:

using DevExpress.Pdf;
using DevExpress.Office.DigitalSignatures;

//Load a document to be signed
using (var signer = new PdfDocumentSigner("SignedDocument.pdf"))
{
    //Specify the name and location of the signature field
    var description = new PdfSignatureFieldInfo(1);
    description.Name = "SignatureField";
    description.SignatureBounds = new PdfRectangle(10, 10, 150, 150);

    //Create a PKCS#7 signature
    Pkcs7Signer signature = new Pkcs7Signer("Signing Documents//testcert.pfx", "123", HashAlgorithmType.SHA256);

    //Apply a signature to a new form field
    var signatureBuilder = new PdfSignatureBuilder(signature, description);

    //Specify the signature's image and signer information
    signatureBuilder.SetImageData(System.IO.File.ReadAllBytes("Signing Documents//Signature.jpg"));
    signatureBuilder.Location = "USA";
    signatureBuilder.Name = "Jane Cooper";

    //Sign and save the document
    signer.SaveDocument("out2.pdf", signatureBuilder);
}
See Also