Class WidgetAnnotation

java.lang.Object
org.openpdf.renderer.annotation.PDFAnnotation
org.openpdf.renderer.annotation.WidgetAnnotation

public class WidgetAnnotation extends PDFAnnotation
PDF annotation describing a widget.
Since:
Aug 20, 2010
  • Constructor Details

  • Method Details

    • getFieldType

      public WidgetAnnotation.FieldType getFieldType()
      Returns the type of the field
      Returns:
      Field type
    • getFieldValue

      public String getFieldValue()
      The field's value as a string. Might be null.
      Returns:
      The field value or null.
    • setFieldValue

      public void setFieldValue(String fieldValue)
      Sets the field value for a text field. Note: this doesn't actually change the PDF file yet.
      Parameters:
      fieldValue - The new value for the text field
    • getFieldName

      public String getFieldName()
      Name for this widget.
      Returns:
      Widget name
    • getPageCommandsForAnnotation

      public List<PDFCmd> getPageCommandsForAnnotation()
      Description copied from class: PDFAnnotation
      Get list of pdf commands for this annotation
      Overrides:
      getPageCommandsForAnnotation in class PDFAnnotation
      Returns: