public class PdfSignature extends Object
| Constructor and Description |
|---|
PdfSignature(String PFXFileName,
String PFXPassword,
String reason,
String location,
String contactInfo,
int pageNum)
Constructs a signature form field using specified digital
certificate from specified PFX file.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isInvisible()
Returns whether the signature is invisible.
|
void |
setBackgroundcolor(Color backgroundcolor)
Sets specified background color for the signature.
|
void |
setContactInfo(String contactInfo)
Sets specified text as the "contact information" of the owner
of the digital signature.
|
void |
setFieldAppearanceStream(PdfAppearanceStream fieldAppearanceStream)
Sets specified custom
appearance stream
for the digital signature.
|
void |
setFieldName(String fieldName)
Sets specified name for the signature form field.
|
void |
setFieldRect(PdfRect fieldRect)
Sets specified location for the signature.
|
void |
setFont(PdfFont font)
Sets specified font as the default font for the signature form
field.
|
void |
setLocation(String location)
Sets specified text as the "location" where the digital
signature was added to the document.
|
void |
setPageNum(int pageNum)
Sets number of the page where the signature needs to be added.
|
void |
setPFXFileName(String pFXFileName)
Loads the digital certificate from specified PFX file.
|
void |
setPFXPassword(String pFXPassword)
Sets the password with which the digital certificate needs to
be read from the
specified PFX
file. |
void |
setReason(String reason)
Sets specified text as "reason" for adding the digital
signature.
|
void |
setTimeStamp(Date timeStamp)
Sets specified date as time stamp when the digital signature
was added.
|
public PdfSignature(String PFXFileName, String PFXPassword, String reason, String location, String contactInfo, int pageNum) throws PdfException
PFXFileName - PFX file from which the digital certificate needs to
be loadedPFXPassword - password with which the certificate needs to be readreason - text that needs to be assigned as the "reason" for
the signaturelocation - text that needs to be assigned as the "location" for
the signaturecontactInfo - text that needs to be assigned as the
"contact information" for the signaturepageNum - number of the page where the signature needs to be
addedPdfException - if an illegal argument is supplied.public void setPFXFileName(String pFXFileName)
pFXFileName - pathname of the PFX file containing the digital
certificatepublic void setPFXPassword(String pFXPassword)
specified PFX
file.pFXPassword - password for reading the digital certificatepublic void setReason(String reason)
reason - text that needs to be set as the reason for adding
the signaturepublic void setLocation(String location)
location - text that needs to be identified as the location
where the signature was addedpublic void setContactInfo(String contactInfo)
contactInfo - text that needs to be set as the
"contact information" property of the digital
signaturepublic void setTimeStamp(Date timeStamp)
timeStamp - time stamp that needs to be set for the signaturepublic void setFieldName(String fieldName)
fieldName - name for the signature form fieldpublic void setFieldRect(PdfRect fieldRect)
fieldRect - location of the signature on a pagepublic void setBackgroundcolor(Color backgroundcolor)
backgroundcolor - background color for the signaturepublic void setFont(PdfFont font)
font - default font for the signature form fieldpublic void setPageNum(int pageNum)
pageNum - number of the page where the signature needs to be
addedpublic void setFieldAppearanceStream(PdfAppearanceStream fieldAppearanceStream)
fieldAppearanceStream - custom appearance stream that needs to be set for
the digital signaturepublic boolean isInvisible()