Package com.itextpdf.signatures
Class SignerProperties
java.lang.Object
com.itextpdf.signatures.SignerProperties
Properties to be used in signing operations.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the document's certification level.Returns the signing contact.Getter for the field lock dictionary.Gets the field name.int
Provides the page number of the signature field which this signature appearance is associated with.Provides the rectangle that represent the position and dimension of the signature field in the page.Gets signature field layout element, which customizes the appearance of a signature.Returns the signature creator.Gets the signature date.setCertificationLevel
(int certificationLevel) Sets the document's certification level.setContact
(String contact) Sets the signing contact.setFieldLockDict
(PdfSigFieldLock fieldLock) Setter for the field lock dictionary.setFieldName
(String fieldName) Sets the name indicating the field to be signed.setPageNumber
(int pageNumber) Sets the page number of the signature field which this signature appearance is associated with.setPageRect
(Rectangle pageRect) Sets the rectangle that represent the position and dimension of the signature field in the page.setSignatureAppearance
(SignatureFieldAppearance appearance) Sets the signature field layout element to customize the appearance of the signature.setSignatureCreator
(String signatureCreator) Sets the name of the application used to create the signature.setSignDate
(Calendar signDate) Sets the signature date.
-
Constructor Details
-
SignerProperties
public SignerProperties()Create instance ofSignerProperties
.
-
-
Method Details
-
getSignDate
Gets the signature date.- Returns:
- Calendar set to the signature date
-
setSignDate
Sets the signature date.- Parameters:
-
signDate
- the signature date
-
setSignatureAppearance
Sets the signature field layout element to customize the appearance of the signature. Signer's sign date will be set.- Parameters:
-
appearance
- theSignatureFieldAppearance
layout element.
-
getSignatureAppearance
Gets signature field layout element, which customizes the appearance of a signature.- Returns:
-
SignatureFieldAppearance
layout element
-
getCertificationLevel
public int getCertificationLevel()Returns the document's certification level. For possible values seesetCertificationLevel(int)
.- Returns:
- The certified status.
-
setCertificationLevel
Sets the document's certification level.- Parameters:
-
certificationLevel
- a new certification level for a document. Possible values are:
-
getFieldName
Gets the field name.- Returns:
- the field name
-
setFieldName
Sets the name indicating the field to be signed. The field can already be presented in the document but shall not be signed. If the field is not presented in the document, it will be created.- Parameters:
-
fieldName
- The name indicating the field to be signed.
-
getPageNumber
public int getPageNumber()Provides the page number of the signature field which this signature appearance is associated with.- Returns:
- The page number of the signature field which this signature appearance is associated with.
-
setPageNumber
Sets the page number of the signature field which this signature appearance is associated with. Implicitly callsPdfSigner.setPageRect(com.itextpdf.kernel.geom.Rectangle)
which considers page number to process the rectangle correctly.- Parameters:
-
pageNumber
- The page number of the signature field which this signature appearance is associated with. - Returns:
- this instance to support fluent interface.
-
getPageRect
Provides the rectangle that represent the position and dimension of the signature field in the page.- Returns:
- the rectangle that represent the position and dimension of the signature field in the page
-
setPageRect
Sets the rectangle that represent the position and dimension of the signature field in the page.- Parameters:
-
pageRect
- The rectangle that represents the position and dimension of the signature field in the page. - Returns:
- this instance to support fluent interface.
-
getFieldLockDict
Getter for the field lock dictionary.- Returns:
- Field lock dictionary.
-
setFieldLockDict
Setter for the field lock dictionary.Be aware: if a signature is created on an existing signature field, then its /Lock dictionary takes the precedence (if it exists).
- Parameters:
-
fieldLock
- Field lock dictionary
-
getSignatureCreator
Returns the signature creator.- Returns:
- The signature creator.
-
setSignatureCreator
Sets the name of the application used to create the signature.- Parameters:
-
signatureCreator
- A new name of the application signing a document. - Returns:
- this instance to support fluent interface.
-
getContact
Returns the signing contact.- Returns:
- The signing contact.
-
setContact
Sets the signing contact.- Parameters:
-
contact
- A new signing contact. - Returns:
- this instance to support fluent interface.
-