pdfGetCustomColorName

Get the name of a custom color.
char *pdfGetCustomColorName(PDFHandle pdf, int idx)
This function returns the name of the idx'th custom color.

Use pdfGetNumCustomColors to get the number of custom colors found by the last call to pdfAnalyzePages.

The string returned by pdfGetCustomColorName should not be modified or freed.

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
pdfGetCustomColorCMYK
pdfGetNumCustomColorObjects