getNumProcessColorObjects

Get the number of objects drawn in the process colors.
getNumProcessColorObjects([in] int idx, [out, retval] int *n)
This function returns the number of objects drawn using each of the four process colors (cyan, magenta, yellow, and black), on the pages specified in the last call to analyzePages. Objects are generally counted multiple times: for example, an object drawn with C=1, M=0.5, Y=0, K=0 would be counted in both cyan and magenta (i.e., it marks both the C and M plates).

The idx argument specifies which process color, and should be one of the following constants:

Those four constants are all read-only properties on the XpdfAnalyze object, so they are accessed as pdf.processC, etc.
VB6:
' analyze page 1 pdf.analyzePages 1, 1 nC = pdf.getNumProcessColorObjects(pdf.processC) nM = pdf.getNumProcessColorObjects(pdf.processM) nY = pdf.getNumProcessColorObjects(pdf.processY) nK = pdf.getNumProcessColorObjects(pdf.processK)
processC
processM
processY
processK