pdfGetNumCustomColorObjects
Get the number of objects drawn in a custom color.
int pdfGetNumCustomColorObjects(PDFHandle pdf, int idx)
This function returns the number of objects drawn in
the
idx
'th custom color.
Use pdfGetNumCustomColors
to get the number of custom colors found
by the last call to pdfAnalyzePages
.
C:
int nColors, nObjects, i;
unsigned int cmyk;
/* analyze page 1 */
pdfAnalyzePages(pdf, 1, 1);
nColors = pdfGetNumCustomColors(pdf);
for (i = 0; i < nColors; ++i) {
name = pdfGetCustomColorName(pdf, i);
cmyk = pdfGetCustomColorCMYK(pdf, i);
nObjects = pdfGetNumCustomColorObjects(pdf, i);
printf("%d objects drawn in the %s custom color = CMYK 0x%08x\n",
nObjects, name, cmyk);
}