pdfGetNumAnnots

Get the number of annotations on the annotation list.
int pdfGetNumAnnots(PDFHandle pdf)
This function returns the number of annotations on the annotation list constructed by the most recent call to pdfBuildAnnotList.

Call pdfGetAnnot to access the annotations.

C:
PDFAnnotHandle annot; /* make annotation list for page 1 */ pdfBuildAnnotList(pdf, 1); for (i = 0; i < pdfGetNumAnnots(pdf); ++i) { annot = pdfGetAnnot(pdf, i); ... }
pdfBuildAnnotList
pdfGetAnnot