FPDFLink_GetLinkZOrderAtPoint function

  1. @Native<Int Function(FPDF_PAGE, Double, Double)>(FPDF_PAGE, ffi.Double, ffi.Double)>()
int FPDFLink_GetLinkZOrderAtPoint(
  1. FPDF_PAGE page,
  2. double x,
  3. double y
)

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);