java.lang.Object
org.sejda.sambox.pdmodel.common.PDDictionaryWrapper
org.sejda.sambox.pdmodel.interactive.form.PDField
org.sejda.sambox.pdmodel.interactive.form.PDTerminalField
org.sejda.sambox.pdmodel.interactive.form.PDSignatureField
- All Implemented Interfaces:
COSObjectable
A signature field is a form field that contains a digital signature.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPDSignatureField(PDAcroForm acroForm) PDSignatureField(PDAcroForm acroForm, COSDictionary field, PDNonTerminalField parent) Constructor. -
Method Summary
Modifier and TypeMethodDescription(package private) voidConstructs appearance streams and appearance dictionaries for all widget annotations.Returns a string representation of the "V" entry, or an empty string.voidSets the value of this field.Methods inherited from class org.sejda.sambox.pdmodel.interactive.form.PDTerminalField
addWidgetIfMissing, applyChange, getFieldFlags, getFieldType, getWidgets, isTerminal, removeWidget, setActions, setWidgetsMethods inherited from class org.sejda.sambox.pdmodel.interactive.form.PDField
findKid, fromDictionary, getAcroForm, getActions, getAlternateFieldName, getFullyQualifiedName, getInheritableAttribute, getMappingName, getParent, getPartialName, isNoExport, isReadonly, isRequired, setAlternateFieldName, setFieldFlags, setMappingName, setNoExport, setPartialName, setReadonly, setRequired, toStringMethods inherited from class org.sejda.sambox.pdmodel.common.PDDictionaryWrapper
equals, getCOSObject, hashCode
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG
-
-
Constructor Details
-
PDSignatureField
- Parameters:
acroForm- The acroForm for this field.- Throws:
IOException- If there is an error while resolving partial name for the signature field or getting the widget object.- See Also:
-
PDSignatureField
PDSignatureField(PDAcroForm acroForm, COSDictionary field, PDNonTerminalField parent) Constructor.- Parameters:
acroForm- The form that this field is part of.field- the PDF object to represent as a field.parent- the parent node of the node to be created
-
-
Method Details
-
getValueAsString
Description copied from class:PDFieldReturns a string representation of the "V" entry, or an empty string.- Specified by:
getValueAsStringin classPDField- Returns:
- A non-null string.
-
constructAppearances
void constructAppearances()Description copied from class:PDTerminalFieldConstructs appearance streams and appearance dictionaries for all widget annotations. Subclasses should not call this method directly but viaPDTerminalField.applyChange().- Specified by:
constructAppearancesin classPDTerminalField
-
setValue
Sets the value of this field. This will throw an UnsupportedOperationException if used as the signature fields value can't be set using a String</>- Specified by:
setValuein classPDField- Parameters:
value- the plain text value.- Throws:
UnsupportedOperationException- in all cases!
-