java.lang.Object | |
↳ | com.pdftron.pdf.PDFViewCtrl.Selection |
A class representing the current text selection.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
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.