pdfGetAnnotRect

Get the bounding box of an annotation.
void pdfGetAnnotRect(PDFAnnotHandle annot, double *xMin, double *yMin, double *xMax, double *yMax)
This function gets the bounding box of an annotation (whose handle was obtained with pdfGetAnnot). The xMin, yMin, xMax, and yMax coordinates are in the PDF coordinate space.
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
pdfGetAnnotType
pdfGetAnnotContent