TextMarkupAnnotation
Inheritance: java.lang.Object, com.aspose.pdf.BaseParagraph, com.aspose.pdf.Annotation, com.aspose.pdf.MarkupAnnotation
public abstract class TextMarkupAnnotation extends MarkupAnnotation
Abstract base class for text markup annotations.
Methods
Method | Description |
---|---|
getQuadPoints() | Gets an array of points specifying the coordinates of n quadrilaterals. |
setQuadPoints(Point[] value) | Sets an array of points specifying the coordinates of n quadrilaterals. |
changeAfterResize(Matrix transform) | Updates the QuadPoints, according to the matrix transform. |
getMarkedText() | Gets text under markup annotation as string. |
getMarkedTextFragments() | Gets text under markup annotation as TextFragmentCollection . |
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: com.aspose.pdf.Point[] - array of Point value
setQuadPoints(Point[] value)
public void setQuadPoints(Point[] value)
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.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Point[] | array of Point value |
changeAfterResize(Matrix transform)
public void changeAfterResize(Matrix transform)
Updates the QuadPoints, according to the matrix transform.
Parameters:
Parameter | Type | Description |
---|---|---|
transform | Matrix | Matrix that use for transformation (resize). |
getMarkedText()
public String getMarkedText()
Gets text under markup annotation as string.
Returns: java.lang.String - String containing text that is under markup annotation.
getMarkedTextFragments()
public TextFragmentCollection getMarkedTextFragments()
Gets text under markup annotation as TextFragmentCollection .
Returns: TextFragmentCollection - TextFragmentCollection containing TextFragment s that is under markup annotation.