java.lang.Object | |
↳ | com.pdftron.pdf.PDFViewCtrl.Selection |
A class representing the current text selection.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
close()
Frees the native memory of the object.
| ||||||||||
String |
getAsHtml()
Get the selected text as html.
| ||||||||||
String |
getAsUnicode()
Get the selected text as unicode string
| ||||||||||
int |
getPageNum()
Get the page number containing the selected text
| ||||||||||
double[] |
getQuads()
Returns the list of tight bounding quads in the current text
selection.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.lang.AutoCloseable
|
Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.
PDFNetException |
---|
Get the selected text as html.
Note: this function can be used to implement clipboard copy and paste that preserves text formatting.
Get the selected text as unicode string
Get the page number containing the selected text
Returns the list of tight bounding quads in the current text selection.