public interface IPDFPageView
Modifier and Type | Method and Description |
---|---|
TextSelection |
clearTextSelection()
Clears the current text selection.
|
TextSelection |
getTextSelection()
Returns the current text selection in the page, if any.
|
boolean |
isInvertColorsMode()
Returns whether or not the page view is set to invert color mode.
|
TextSelection |
selectTextInArea(Rectangle2D selectRect)
Selects the text in an area of the page.
|
TextSelection |
selectTextWithCursors(Point2D startCursor,
Point2D endCursor)
Selects the text in the page from the start cursor to the end cursor, in reading mode.
|
void |
setInvertColorsMode(boolean invertMode)
Sets the page to paint in inverted mode: Black will show as white and white as black.
|
void |
setTextSelection(TextSelection ts)
Sets the text selection in this page.
|
void setTextSelection(TextSelection ts)
ts
- The new text selection.TextSelection clearTextSelection()
TextSelection getTextSelection()
void setInvertColorsMode(boolean invertMode)
invertMode
- The new invert mode.boolean isInvertColorsMode()
TextSelection selectTextWithCursors(Point2D startCursor, Point2D endCursor) throws PDFException
startCursor
- the location where the cursor should start selectionendCursor
- The location where the cursor ends selectionPDFException
TextSelection selectTextInArea(Rectangle2D selectRect) throws PDFException
selectRect
- The rectangle in which to select the text.PDFException