pdfGetAnnotType

Get the type of an annotation.
char *pdfGetAnnotType(PDFAnnotHandle annot)
This function returns the type of an annotation (whose handle was obtained with pdfGetAnnot). The type string is one of the annotation types defined in the PDF spec.

The returned string should not be modified or freed.

C:
PDFAnnotHandle annot; char *type; double xMin, yMin, xMax, yMax; /* make annotation list for page 1 */ pdfBuildAnnotList(pdf, 1); for (i = 0; i < pdfGetNumAnnots(pdf); ++i) { annot = pdfGetAnnot(pdf, i); type = pdfGetAnnotType(annot); pdfGetAnnotRect(annot, &xMin, &yMin, &xMax, &yMax); }
pdfBuildAnnotList
pdfGetNumAnnots
pdfGetAnnot
pdfGetAnnotRect
pdfGetAnnotContent