Class HighLightTextMarkupAnnotationFlattener
- java.lang.Object
-
- com.itextpdf.kernel.utils.annotationsflattening.DefaultAnnotationFlattener
-
- com.itextpdf.kernel.utils.annotationsflattening.AbstractTextMarkupAnnotationFlattener
-
- com.itextpdf.kernel.utils.annotationsflattening.HighLightTextMarkupAnnotationFlattener
-
- All Implemented Interfaces:
IAnnotationFlattener
public class HighLightTextMarkupAnnotationFlattener extends AbstractTextMarkupAnnotationFlattener
Implementation ofIAnnotationFlattener
for highlight text markup annotations.
-
-
Constructor Summary
Constructors Constructor Description HighLightTextMarkupAnnotationFlattener()
Creates a newHighLightTextMarkupAnnotationFlattener
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PdfCanvas
createCanvas(PdfPage page)
Creates a canvas.protected boolean
draw(PdfAnnotation annotation, PdfPage page)
Draws annotation.-
Methods inherited from class com.itextpdf.kernel.utils.annotationsflattening.AbstractTextMarkupAnnotationFlattener
flatten, getColor, getQuadPointsAsFloatArray
-
-
-
-
Constructor Detail
-
HighLightTextMarkupAnnotationFlattener
public HighLightTextMarkupAnnotationFlattener()
Creates a newHighLightTextMarkupAnnotationFlattener
instance.
-
-
Method Detail
-
createCanvas
protected PdfCanvas createCanvas(PdfPage page)
Creates a canvas. It will draw below the other items on the canvas.- Overrides:
createCanvas
in classDefaultAnnotationFlattener
- 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 classDefaultAnnotationFlattener
- Parameters:
annotation
- annotation to drawpage
- page to draw annotation on- Returns:
- true if annotation was drawn, false otherwise
-
-