public class

PDFViewCtrl.Selection

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.PDFViewCtrl.Selection

Class Overview

Class that represents the current text selection by PDFViewCtrl.

Summary

Public Methods
String getAsHtml()
Gets the selected text as an html String.
String getAsUnicode()
Gets the selected text as a unicode String.
int getPageNum()
Gets the count of pages that contain selected text.
double[] getQuads()
Returns the list of the tight bounding quadrangles in the current text selection.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public String getAsHtml ()

Gets the selected text as an html String.

public String getAsUnicode ()

Gets the selected text as a unicode String.

public int getPageNum ()

Gets the count of pages that contain selected text.

public double[] getQuads ()

Returns the list of the tight bounding quadrangles in the current text selection.

Returns
  • an array of vertices representing a list of bounding quadrangles for the selected text. Each bounding quadrangle is represented using 8 numbers in an array of doubles. Each two consecutive values represent the x and y coordinates of a quadrangle vertex and the four vertices are arranged counter-clockwisely, and the first vertex is NOT guaranteed to be the lower-left vertex.