pdfGetImages

Scan the images on a page.
void pdfGetImages(PDFHandle pdf, int page)
This function scans the images on a specified page.

After calling pdfGetImages, you can call pdfGetNumImages and pdfGetImageInfo to retrieve information about each image on the page.

pdfGetImages must be called before calling any of the other image-related functions (pdfGetNumImages, pdfGetImageInfo, pdfGetImageBitmap, etc.). Those functions will work with the images from the page specified in the pdfGetImages call, until pdfGetImages is called again on a different page.

C:
int nImgs, i; /* scan images on page 1 */ pdfGetImages(pdf, 1); nImgs = pdfGetNumImages(pdf); for (i = 0; i < nImgs; ++i) { pdfGetImageInfo(pdf, i, ......); } /* scan images on page 2 */ pdfGetImages(pdf, 2); nImgs = pdfGetNumImages(pdf); for (i = 0; i < nImgs; ++i) { pdfGetImageInfo(pdf, i, ......); }
pdfGetNumImages
pdfGetImageInfo