setCurrentSelection2
Change the selection.
setCurrentSelection2([in] int page, [in] double x0, [in] double y0,
[in] double x1, [in] double y1)
This function sets the selection to the rectangle with upper-left
corner
x0, y0
and lower-right corner x1, y1
on page number page
.
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 convertWindowToPDFCoords2
for conversion
from window coordinates.
To clear the selection, set it to an empty rectangle:
viewer.setCurrentSelection2 1, 0, 0, 0, 0
VB:
viewer.setCurrentSelection2(page, x0, y0, x1, y1)