Class MarkupAnnotation

java.lang.Object
org.openpdf.renderer.annotation.PDFAnnotation
org.openpdf.renderer.annotation.MarkupAnnotation
Direct Known Subclasses:
CircleAnnotation, FreetextAnnotation, SquareAnnotation, StampAnnotation, TextMarkupAnnotation

public class MarkupAnnotation extends PDFAnnotation
PDF annotation describing a all kind of "markup" annotations which are visible in the PDF.
  • Field Details

  • Constructor Details

  • Method Details

    • parseAP

      protected void parseAP(PDFObject dictRef) throws IOException
      Parses the appearance stream into PDF commands
      Parameters:
      dictRef -
      Throws:
      IOException
    • parseOnOffCommands

      private void parseOnOffCommands() throws IOException
      Parses the mouse On or Off appearance stream depending on which one is currently active.
      Throws:
      IOException
    • parseBorderStyleDictionary

      protected void parseBorderStyleDictionary(PDFObject bs) throws IOException
      Parses the border style dictionary
      Parameters:
      bs -
      Throws:
      IOException
    • getBorderStyle

      public AnnotationBorderStyle getBorderStyle()
      Returns:
      the border style or null if not specified.
    • parsePopupAnnotation

      private void parsePopupAnnotation(PDFObject popupObj) throws IOException
      Parses the popup annotation
      Parameters:
      popupObj -
      Throws:
      IOException
    • parseIntoPdfCommands

      private List<PDFCmd> parseIntoPdfCommands(PDFObject obj) throws IOException
      Throws:
      IOException
    • getPositionTransformation

      private AffineTransform getPositionTransformation()
      Transform to the position of the stamp annotation
      Returns:
    • getOnAppearance

      public PDFObject getOnAppearance()
      Returns:
      the onAppearance
    • getOffAppearance

      public PDFObject getOffAppearance()
      Returns:
      the offAppearance
    • isAppearanceStateOn

      public boolean isAppearanceStateOn()
      Returns:
      the appearanceStateOn
    • switchAppearance

      public void switchAppearance()
    • getCurrentAppearance

      public PDFObject getCurrentAppearance()
    • getCurrentCommand

      public List<PDFCmd> getCurrentCommand()
    • getPageCommandsForAnnotation

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

      public PDFAnnotation getPopupAnnotation()
      Returns:
      the popupAnnotation
    • getTextLabel

      public String getTextLabel()