pdfGetCustomColorCMYK

Get the CMYK value of a custom color.
unsigned int pdfGetCustomColorCMYK(PDFHandle pdf, int idx)
This function returns the CMYK value for the idx'th custom color. The returned value is a 32-bit integer in CCMMYYKK format.

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); }
pdfGetNumCustomColors
pdfGetCustomColorName
pdfGetNumCustomColorObjects