pdfSetCurrentSelection2

Change the selection.
void pdfSetCurrentSelection2(PDFViewerHandle viewer, int page, double x0, double y0, double x1, 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 pdfConvertWindowToPDFCoords2 for conversion from window coordinates.

To clear the selection, set it to an empty rectangle:

pdfSetCurrentSelection2(viewer, 1, 0, 0, 0, 0);
C:
pdfSetCurrentSelection2(viewer, page, x0, y0, x1, y1);
pdfGetCurrentSelection2
pdfClearSelection
pdfSetSelectionColor
pdfEnableSelect
pdfConvertWindowToPDFCoords2