pdfGetNumFills
Get the number of fills on the analyzed page(s).
int pdfGetNumFills(PDFHandle pdf)
Drawn objects in PDF files are divided into four types:
- bitmap images
- text strings
- strokes (lines)
- fills (filled shapes)
pdfAnalyzePages
.
C:
int i, n, nFills;
n = pdfGetNumPages(pdf);
for (i = 1; i <= n; ++i) {
/* analyze page i */
pdfAnalyzePages(pdf, i, i);
/* retrieve statistics for page i */
nFills = pdfGetNumFills(pdf);
}