java.lang.Object | |||
↳ | com.pspdfkit.annotations.Annotation | ||
↳ | com.pspdfkit.annotations.BaseRectsAnnotation | ||
↳ | com.pspdfkit.annotations.TextMarkupAnnotation |
![]() |
Abstract base-class of all text markup annotations: HighlightAnnotation
, SquigglyAnnotation
, UnderlineAnnotation
and StrikeOutAnnotation
.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TextMarkupAnnotation(int pageIndex)
Creates a text markup annotation on a page with specified number.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String |
getHighlightedText()
Returns text highlighted by this annotation.
| ||||||||||
List<TextBlock> |
getHighlightedTextBlocks()
Returns list of highlighted text blocks for this annotation.
| ||||||||||
void |
updateTransformationProperties(RectF newBoundingBox, RectF oldBoundingBox)
Annotations may override this method to transform their properties (i.e.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates a text markup annotation on a page with specified number.
pageIndex | Page number of the page on which to create this annotation. |
---|
Returns text highlighted by this annotation.
Returns list of highlighted text blocks for this annotation.
Annotations may override this method to transform their properties (i.e. points, rects, sizes) whenever the bounding box of the annotation changed.
newBoundingBox | New bounding box of the annotation (in PDF points). |
---|---|
oldBoundingBox | Old bounding box of the annotation (in PDF points). |