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.) A seed value dictionary containing information
that constrains the properties of a signature that is applied to the
field.
|
void |
setValue(PDSignature value)
Sets the value of this field to be the given signature.
|
void |
setValue(String value)
This will throw an UnsupportedOperationException if used as the signature fields
value can't be set using a String
|
applyChange, getFieldFlags, getFieldType, getWidgets, importFDF, setActions, setWidgetsgetAcroForm, getActions, getAlternateFieldName, getCOSObject, getFullyQualifiedName, getInheritableAttribute, getMappingName, getParent, getPartialName, isNoExport, isReadOnly, isRequired, setAlternateFieldName, setFieldFlags, setMappingName, setNoExport, setPartialName, setReadOnly, setRequired, toStringpublic PDSignatureField(PDAcroForm acroForm)
acroForm - The acroForm for this field.PDTerminalField.PDTerminalField(PDAcroForm)public PDSignature getSignature()
public void setValue(PDSignature value) throws IOException
value - is the PDSignatureFieldIOException - if the new value could not be appliedpublic void setValue(String value)
setValue in class PDFieldvalue - the plain text value.UnsupportedOperationException - in all cases!public void setDefaultValue(PDSignature value)
value - is the PDSignatureFieldpublic PDSignature getValue()
public PDSignature getDefaultValue()
public String getValueAsString()
PDFieldgetValueAsString in class PDFieldpublic 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–2022 The Apache Software Foundation. All rights reserved.