FPDFLink_GetLinkZOrderAtPoint function
Find the Z-order of link at point (|x|,|y|) on |page|.
page - handle to the document page. x - the x coordinate, in the page coordinate system. y - the y coordinate, in the page coordinate system.
Returns the Z-order of the link, or -1 if no link found at the given point. Larger Z-order numbers are closer to the front.
You can convert coordinates from screen coordinates to page coordinates using FPDF_DeviceToPage().
Implementation
@ffi.Native<ffi.Int Function(FPDF_PAGE, ffi.Double, ffi.Double)>()
external int FPDFLink_GetLinkZOrderAtPoint(FPDF_PAGE page, double x, double y);