| Access | Constructor and Description |
|---|---|
| public | TextExtractor(@NonNull PDPage
the page the annotation is on, must not be null page, @NonNull COSArray the raw annotation, must not be null boundingBoxes)
|
| Modifier and Type | Method and Description |
|---|---|
| private Rectangle2D | |
| public String | Returns: The text of the annotationExtracts the text of a marked annotation such as highlights, underlines, strikeouts etc. |
| private float |
| boundingBoxes | back to summary |
|---|---|
| private final COSArray boundingBoxes | |
| page | back to summary |
|---|---|
| private final PDPage page | |
| TextExtractor | back to summary |
|---|---|
| public TextExtractor(@NonNull PDPage page, @NonNull COSArray boundingBoxes) | |
| calculateSegmentBoundingBox | back to summary |
|---|---|
| private Rectangle2D calculateSegmentBoundingBox(COSArray quadsArray, int segmentPointer) | |
| extractMarkedText | back to summary |
|---|---|
| public String extractMarkedText() throws IOException Extracts the text of a marked annotation such as highlights, underlines, strikeouts etc.
| |
| toFloat | back to summary |
|---|---|
| private float toFloat(Object cosNumber) | |