org.apache.pdfbox.pdmodel.interactive.form
Class PDSignatureField

java.lang.Object
  extended by org.apache.pdfbox.pdmodel.interactive.form.PDField
      extended by org.apache.pdfbox.pdmodel.interactive.form.PDSignatureField
All Implemented Interfaces:
COSObjectable

public class PDSignatureField
extends PDField

A class for handling the PDF field as a signature.

Version:
$Revision: 1.5 $
Author:
Ben Litchfield, Thomas Chojecki

Field Summary
 
Fields inherited from class org.apache.pdfbox.pdmodel.interactive.form.PDField
FLAG_NO_EXPORT, FLAG_READ_ONLY, FLAG_REQUIRED
 
Constructor Summary
PDSignatureField(PDAcroForm theAcroForm)
           
PDSignatureField(PDAcroForm theAcroForm, COSDictionary field)
           
 
Method Summary
 PDSignature getSignature()
          Get the signature dictionary
 String getValue()
          Deprecated. use getSignature() instead
 void setSignature(PDSignature value)
          Add a signature dictionary to the signature field
 void setValue(String value)
          Deprecated. use setSignature(PDSignature) instead
 String toString()
          Return a string rep of this object.
 
Methods inherited from class org.apache.pdfbox.pdmodel.interactive.form.PDField
findFieldType, findKid, getAcroForm, getActions, getAlternateFieldName, getCOSObject, getDictionary, getFieldFlags, getFieldType, getFullyQualifiedName, getKids, getParent, getPartialName, getWidget, importFDF, isNoExport, isReadonly, isRequired, setAcroForm, setActions, setAlternateFieldName, setFieldFlags, setKids, setNoExport, setParent, setPartialName, setReadonly, setRequired
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PDSignatureField

public PDSignatureField(PDAcroForm theAcroForm,
                        COSDictionary field)
                 throws IOException
Parameters:
theAcroForm - The acroForm for this field.
field - The dictionary for the signature.
Throws:
IOException - If there is an error while resolving partital name for the signature field
See Also:
PDField.PDField(PDAcroForm,COSDictionary)

PDSignatureField

public PDSignatureField(PDAcroForm theAcroForm)
                 throws IOException
Parameters:
theAcroForm - The acroForm for this field.
Throws:
IOException - If there is an error while resolving partial name for the signature field
See Also:
PDField.PDField(PDAcroForm)
Method Detail

setValue

@Deprecated
public void setValue(String value)
              throws IOException
Deprecated. use setSignature(PDSignature) instead

Description copied from class: PDField
setValue sets the fields value to a given string.

Specified by:
setValue in class PDField
Parameters:
value - The new value for the field.
Throws:
IOException - If there is an error creating the appearance stream.
See Also:
PDField.setValue(java.lang.String)

getValue

@Deprecated
public String getValue()
                throws IOException
Deprecated. use getSignature() instead

Description copied from class: PDField
getValue gets the fields value to as a string.

Specified by:
getValue in class PDField
Returns:
The string value of this field.
Throws:
IOException - If there is an error creating the appearance stream.
See Also:
PDField.setValue(java.lang.String)

toString

public String toString()
Return a string rep of this object.

Overrides:
toString in class PDField
Returns:
A string rep of this object.

setSignature

public void setSignature(PDSignature value)
Add a signature dictionary to the signature field

Parameters:
value - is the PDSignature

getSignature

public PDSignature getSignature()
Get the signature dictionary

Returns:
the signature dictionary


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.