Class PDSignatureField

All Implemented Interfaces:
COSObjectable

public class PDSignatureField extends PDTerminalField
A signature field is a form field that contains a digital signature.
Author:
Ben Litchfield, Thomas Chojecki
  • Constructor Details

    • PDSignatureField

      public PDSignatureField(PDAcroForm acroForm)
      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:
  • Method Details

    • getValueAsString

      public String getValueAsString()
      Description copied from class: PDField
      Returns a string representation of the "V" entry, or an empty string.
      Specified by:
      getValueAsString in class PDField
      Returns:
      A non-null string.
    • setValue

      public void setValue(String value) throws UnsupportedOperationException
      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:
      setValue in class PDField
      Parameters:
      value - the plain text value.
      Throws:
      UnsupportedOperationException - in all cases!