Table of Contents

Class AbstractTextMarkupAnnotationFlattener

Namespace
iText.Kernel.Utils.Annotationsflattening
Assembly
itext.kernel.dll

This class is used to flatten text markup annotations.

public abstract class AbstractTextMarkupAnnotationFlattener : DefaultAnnotationFlattener, IAnnotationFlattener
Inheritance
AbstractTextMarkupAnnotationFlattener
Implements
Derived
Inherited Members

Remarks

This class is used to flatten text markup annotations.

Text markup annotations are: MarkupHighlight , MarkupUnderline , MarkupSquiggly , MarkupStrikeout.

Constructors

AbstractTextMarkupAnnotationFlattener()

protected AbstractTextMarkupAnnotationFlattener()

Methods

Flatten(PdfAnnotation, PdfPage)

public override bool Flatten(PdfAnnotation annotation, PdfPage page)

Parameters

annotation PdfAnnotation
page PdfPage

Returns

bool

GetColor(PdfAnnotation)

protected virtual Color GetColor(PdfAnnotation annotation)

Parameters

annotation PdfAnnotation

the annotation to extract the color from.

Returns

Color

the color or null if the colorspace is invalid

GetQuadPointsAsFloatArray(PdfAnnotation)

Gets the quadpoints as a float array.

public static float[] GetQuadPointsAsFloatArray(PdfAnnotation annotation)

Parameters

annotation PdfAnnotation

the annotation

Returns

float[]

the quadpoints as float array

Remarks

Gets the quadpoints as a float array. if the annotation has no quadpoints, returns the annotation rectangle converted to the same notation as the quadpoints.