pdfGetNumRegions
Get the current number of regions.
int pdfGetNumRegions(PDFViewerHandle viewer)
This function returns the current number of highlighted regions.
C:
PDFRegionHandle region;
int n, i;
n = pdfGetNumRegions(viewer);
for (i = 0; i < n; ++i) {
region = pdfGetRegion(viewer, i);
/* do something with the region ... */
}