Class HighLightTextMarkupAnnotationFlattener

All Implemented Interfaces:
IAnnotationFlattener

public class HighLightTextMarkupAnnotationFlattener extends AbstractTextMarkupAnnotationFlattener
Implementation of IAnnotationFlattener for highlight text markup annotations.
  • Constructor Details

  • Method Details

    • createCanvas

      protected PdfCanvas createCanvas (PdfPage page)
      Creates a canvas. It will draw below the other items on the canvas.
      Overrides:
      createCanvas in class DefaultAnnotationFlattener
      Parameters:
      page - the page to draw the annotation on
      Returns:
      the PdfCanvas the annotation will be drawn upon.
    • draw

      protected boolean draw (PdfAnnotation annotation, PdfPage page)
      Draws annotation. This method is called if the normal appearance stream of the annotation is not present. The default implementation returns false.
      Overrides:
      draw in class DefaultAnnotationFlattener
      Parameters:
      annotation - annotation to draw
      page - page to draw annotation on
      Returns:
      true if annotation was drawn, false otherwise