pdfGetNumImages
Get the number of images on the analyzed page(s).
int pdfGetNumImages(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, nImages;
n = pdfGetNumPages(pdf);
for (i = 1; i <= n; ++i) {
/* analyze page i */
pdfAnalyzePages(pdf, i, i);
/* retrieve statistics for page i */
nImages = pdfGetNumImages(pdf);
}