public class

SignatureWidget

extends Widget
java.lang.Object
   ↳ com.pdftron.pdf.Annot
     ↳ com.pdftron.pdf.annots.Widget
       ↳ com.pdftron.pdf.annots.SignatureWidget

Class Overview

An object representing a Signature used in a PDF Form. These Widgets can be signed directly, or signed using a DigitalSignatureField.

Summary

[Expand]
Inherited Constants
From class com.pdftron.pdf.annots.Widget
From class com.pdftron.pdf.Annot
Public Constructors
SignatureWidget(Obj d)
Creates a SignatureWidget annotation and initializes it using given Cos/SDF object.
SignatureWidget()
Creates an empty SignatureWidget annotation.
SignatureWidget(Annot annot)
Creates a SignatureWidget annotation and initialize it using given annotation object.
Public Methods
static SignatureWidget create(Doc doc, Rect pos, DigitalSignatureField field)
Creates a new SignatureWidget annotation associated with a particular DigitalSignatureField object (representing a signature-type form field) in the specified document.
static SignatureWidget create(Doc doc, Rect pos, String field_name)
Creates a new SignatureWidget annotation in the specified document, and adds a signature form field to the document.
static SignatureWidget create(Doc doc, Rect pos, Field field)
Creates a new SignatureWidget annotation associated with a particular form field in the specified document.
static SignatureWidget create(Doc doc, Rect pos)
Creates a new SignatureWidget annotation in the specified document, and adds an associated signature form field to the document with a default Field name.
void createSignatureAppearance(Image img)
A function that will create and add an appearance to this widget by centering an image within it.
DigitalSignatureField getDigitalSignatureField()
Retrieves the DigitalSignatureField associated with this SignatureWidget.
[Expand]
Inherited Methods
From class com.pdftron.pdf.annots.Widget
From class com.pdftron.pdf.Annot
From class java.lang.Object

Public Constructors

public SignatureWidget (Obj d)

Creates a SignatureWidget annotation and initializes it using given Cos/SDF object.

Note: The constructor does not copy any data, but is instead the logical equivalent of a type cast.

Parameters
d The Cos/SDF object to initialze the annotation with.

public SignatureWidget ()

Creates an empty SignatureWidget annotation.

public SignatureWidget (Annot annot)

Creates a SignatureWidget annotation and initialize it using given annotation object.

Note: The constructor does not copy any data, but is instead the logical equivalent of a type cast.

Parameters
annot the annot

Public Methods

public static SignatureWidget create (Doc doc, Rect pos, DigitalSignatureField field)

Creates a new SignatureWidget annotation associated with a particular DigitalSignatureField object (representing a signature-type form field) in the specified document.

Parameters
doc The document to which the widget is to be added.
pos A rectangle specifying the widget's bounds in default user space units.
field The digital signature field for which to create a signature widget.
Returns
  • A newly-created blank SignatureWidget annotation.

public static SignatureWidget create (Doc doc, Rect pos, String field_name)

Creates a new SignatureWidget annotation in the specified document, and adds a signature form field to the document.

Parameters
doc The document to which the widget is to be added.
pos A rectangle specifying the widget's bounds in default user space units.
field_name The name of the digital signature field to create.
Returns
  • A newly-created blank SignatureWidget annotation.

public static SignatureWidget create (Doc doc, Rect pos, Field field)

Creates a new SignatureWidget annotation associated with a particular form field in the specified document.

Parameters
doc The document to which the widget is to be added.
pos A rectangle specifying the widget's bounds in default user space units.
field The digital signature field for which to create a signature widget.
Returns
  • A newly-created blank SignatureWidget annotation.

public static SignatureWidget create (Doc doc, Rect pos)

Creates a new SignatureWidget annotation in the specified document, and adds an associated signature form field to the document with a default Field name.

Parameters
doc The document to which the widget is to be added.
pos A rectangle specifying the widget's bounds in default user space units.
Returns
  • A newly-created blank SignatureWidget annotation.

public void createSignatureAppearance (Image img)

A function that will create and add an appearance to this widget by centering an image within it.

Parameters
img An Image object representing the image to use.

public DigitalSignatureField getDigitalSignatureField ()

Retrieves the DigitalSignatureField associated with this SignatureWidget.

Returns
  • A DigitalSignatureField object representing the digital signature form field associated with this signature widget annotation.