addSignatureField

public final PdfSignatureField addSignatureField(String name, PdfPage page, float x, float y, float width, float height)

Adds a new signature field to the document on the specified page. The signature field serves as a placeholder for a digital signature. After creating the field, use to sign the document using this field.

Return

The newly created .

Parameters

name

The name of the signature field. Must be unique within the document.

page

The page where the signature field will be placed.

x

The x coordinate of the field's origin in points.

y

The y coordinate of the field's origin in points.

width

The width of the field in points.

height

The height of the field in points.

Throws

Thrown when no document is loaded.

Thrown when the field creation fails.