public class PDSignatureField extends PDTerminalField
Constructor and Description |
---|
PDSignatureField(PDAcroForm acroForm) |
Modifier and Type | Method and Description |
---|---|
PDSignature |
getDefaultValue()
Returns the default value, if any.
|
PDSeedValue |
getSeedValue()
(Optional; PDF 1.5) A seed value dictionary containing information
that constrains the properties of a signature that is applied to the
field.
|
PDSignature |
getSignature()
Get the signature dictionary.
|
PDSignature |
getValue()
Returns the signature contained in this field.
|
String |
getValueAsString()
Returns a string representation of the "V" entry, or an empty string.
|
void |
setDefaultValue(PDSignature value)
Sets the default value of this field to be the given signature.
|
void |
setSeedValue(PDSeedValue sv)
(Optional; PDF 1.)
|
void |
setSignature(PDSignature value)
Deprecated.
Use
setValue(PDSignature) instead. |
void |
setValue(PDSignature value)
Sets the value of this field to be the given signature.
|
void |
setValue(String value)
Sets the value of this field.
|
applyChange, getFieldFlags, getFieldType, getWidget, getWidgets, importFDF, setActions, setWidgets
getAcroForm, getActions, getAlternateFieldName, getCOSObject, getFullyQualifiedName, getInheritableAttribute, getMappingName, getParent, getPartialName, isNoExport, isReadOnly, isRequired, setAlternateFieldName, setFieldFlags, setMappingName, setNoExport, setPartialName, setReadOnly, setRequired, toString
public PDSignatureField(PDAcroForm acroForm) throws IOException
acroForm
- The acroForm for this field.IOException
- If there is an error while resolving partial name for the signature field
or getting the widget object.PDTerminalField.PDTerminalField(PDAcroForm)
@Deprecated public void setSignature(PDSignature value) throws IOException
setValue(PDSignature)
instead.value
- is the PDSignatureFieldIOException
public PDSignature getSignature()
public void setValue(PDSignature value) throws IOException
value
- is the PDSignatureFieldIOException
public void setValue(String value) throws UnsupportedOperationException
setValue
in class PDField
value
- the plain text value.UnsupportedOperationException
- in all cases!public void setDefaultValue(PDSignature value) throws IOException
value
- is the PDSignatureFieldIOException
public PDSignature getValue()
public PDSignature getDefaultValue()
public String getValueAsString()
PDField
getValueAsString
in class PDField
public PDSeedValue getSeedValue()
(Optional; PDF 1.5) A seed value dictionary containing information that constrains the properties of a signature that is applied to the field.
public void setSeedValue(PDSeedValue sv)
(Optional; PDF 1.) A seed value dictionary containing information that constrains the properties of a signature that is applied to the field.
sv
- is the seed value dictionary as PDSeedValueCopyright © 2002–2016 The Apache Software Foundation. All rights reserved.