pdfGotoLinkAt2

Activate the link at the specified coordinates.
void pdfGotoLinkAt2(PDFViewerHandle viewer, int page, double x, double y)
This function activates (follows) the link (if any) at the specified page number and coordinates.

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); }
pdfConvertWindowToPDFCoords2
pdfOnLink2