pdfGetImageInfo

Get information about an image.
void pdfGetImageInfo(PDFHandle pdf, int idx, int *mask, int *colorSpace, int *width, int *height)
This function retrieves information about the idxth image on the page specified in the last call to pdfGetImages.

The following information is returned:

C:
int nImgs, i, mask, colorSpace, w, h; /* scan images on page 1 */ pdfGetImages(pdf, 1); nImgs = pdfGetNumImages(pdf); for (i = 0; i < nImgs; ++i) { pdfGetImageInfo(pdf, i, &mask, &colorSpace, &w, &h); printf("image %d: %s %d x %d colorSpace=%s\n", i, mask ? "mask" : "image", w, h, pdfGetColorSpaceName(colorSpace)); }
pdfGetImages
pdfGetNumImages