TextMarkupAnnotation

Inheritance: java.lang.Object, com.aspose.pdf.BaseParagraph com.aspose.pdf.Annotation com.aspose.pdf.MarkupAnnotation com.aspose.pdf.TextMarkupAnnotation, com.aspose.pdf.BaseParagraph, com.aspose.pdf.Annotation com.aspose.pdf.MarkupAnnotation com.aspose.pdf.TextMarkupAnnotation, com.aspose.pdf.Annotation, com.aspose.pdf.MarkupAnnotation com.aspose.pdf.TextMarkupAnnotation, com.aspose.pdf.MarkupAnnotation, com.aspose.pdf.TextMarkupAnnotation

All Implemented Interfaces: com.aspose.ms.System.ICloneable, com.aspose.pdf.engine.ITitledAnnotation

public abstract class TextMarkupAnnotation extends MarkupAnnotation

Abstract base class for text markup annotations.

Methods

MethodDescription
changeAfterResizeUpdates the QuadPoints, according to the matrix transform.
getMarkedTextGets text under markup annotation as string.
getMarkedTextFragmentsGets text under markup annotation as {@code TextFragmentCollection}.
getQuadPointsGets an array of points specifying the coordinates of n quadrilaterals. Each quadrilateral encompasses a word or group of contiguous words in the text underlying the annotation.
setQuadPointsSets an array of points specifying the coordinates of n quadrilaterals. Each quadrilateral encompasses a word or group of contiguous words in the text underlying the annotation.

changeAfterResize

Updates the QuadPoints, according to the matrix transform.

getMarkedText

public String getMarkedText()

Gets text under markup annotation as string.

Returns: String containing text that is under markup annotation.

getMarkedTextFragments

public TextFragmentCollection getMarkedTextFragments()

Gets text under markup annotation as {@code TextFragmentCollection}.

Returns: {@code TextFragmentCollection} containing {@code TextFragment}s that is under markup annotation.

getQuadPoints

public Point [] getQuadPoints()

Gets an array of points specifying the coordinates of n quadrilaterals. Each quadrilateral encompasses a word or group of contiguous words in the text underlying the annotation.

Returns: array of Point value

setQuadPoints

Sets an array of points specifying the coordinates of n quadrilaterals. Each quadrilateral encompasses a word or group of contiguous words in the text underlying the annotation.