getCurrentSelectionY0

Get the y0 coordinate of the current selection.
getCurrentSelectionY0([out, retval] double *y0)
This function returns the y0 (upper edge) coordinate of the currently active selection.

This is the same value returned by getCurrentSelection2. The isCurrentSelection, getCurrentSelectionPage, getCurrentSelectionX0, getCurrentSelectionY0, getCurrentSelectionX1, and getCurrentSelectionY1 functions are intended to support environments that don't support output parameters (JavaScript in Internet Explorer).

The coordinates of the upper-left and lower-right corners are in the PDF file coordinate space - they are not screen pixel coordinates. This means that changes in zoom or rotation will not affect the rectangle described by specific values of the four coordinates. See the convertPDFToWindowCoords2 for conversion to window coordinates.

VB:
Dim page As Long Dim x0 As Double, y0 As Double, x1 As Double, y1 As Double If viewer.isCurrentSelection() Then page = viewer.getCurrentSelectionPage() x0 = viewer.getCurrentSelectionX0() y0 = viewer.getCurrentSelectionY0() x1 = viewer.getCurrentSelectionX1() y1 = viewer.getCurrentSelectionY1() Clipboard.SetText(viewer.extractText(x0, y0, x1, y1)) End If
(This example is for illustration purposes - using copySelection is much simpler.)
getCurrentSelection2
isCurrentSelection
getCurrentSelectionPage
getCurrentSelectionX0
getCurrentSelectionX1
getCurrentSelectionY1
setCurrentSelection2
clearSelection
getSelectedText
copySelection
enableSelect
selectDone
convertPDFToWindowCoords2