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
  • Field Details

  • Constructor Details

  • Method Details

    • parseAP

      private void parseAP(PDFObject dictRef) throws IOException
      Throws:
      IOException
    • parseCommand

      private List<PDFCmd> parseCommand(PDFObject obj) throws IOException
      Parameters:
      obj -
      Returns:
      Throws:
      IOException
    • getPositionTransformation

      private AffineTransform getPositionTransformation()
      Transform to the position of the stamp annotation
      Returns:
    • 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: