FPDFPage_GetAnnotIndex method

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

int FPDFPage_GetAnnotIndex(FPDF_PAGE page, FPDF_ANNOTATION annot) {
  return _FPDFPage_GetAnnotIndex(page, annot);
}