pdfOnLink2
Check to see if a point is inside a hyperlink.
int pdfOnLink2(PDFViewerHandle viewer, int page, double x, double y)
This function returns non-zero if the specified coordinates on the
specified page are inside (over) a hyperlink.
The coordinates are in the PDF coordinate space. Mouse coordinates
must be converted before being passed to this function (see
pdfConvertWindowToPDFCoords2
).
C:
int page;
double x, y;
pdfConvertWindowToPDFCoords2(viewer, mouseX, mouseY, &page, &x, &y);
if (pdfOnLink2(viewer, page, x, y)) {
/* the mouse is over a PDF hyperlink */
...
/* activate the hyperlink */
pdfGotoLinkAt2(viewer, page, x, y);
}