FPDFPage_GetAnnotIndex function

  1. @Native<Int Function(FPDF_PAGE, FPDF_ANNOTATION)>(FPDF_PAGE, FPDF_ANNOTATION)>()
int FPDFPage_GetAnnotIndex(
  1. FPDF_PAGE page,
  2. FPDF_ANNOTATION annot
)

Experimental API. Get the index of |annot| in |page|. This is the opposite of FPDFPage_GetAnnot().

page - handle to the page that the annotation is on. annot - handle to an annotation.

Returns the index of |annot|, or -1 on failure.

Implementation

@ffi.Native<ffi.Int Function(FPDF_PAGE, FPDF_ANNOTATION)>()
external int FPDFPage_GetAnnotIndex(FPDF_PAGE page, FPDF_ANNOTATION annot);