getNumCustomColorObjects
Get the number of objects drawn in a custom color.
getNumCustomColorObjects([in] int idx, [out, retval] int *n)
This function returns the number of objects drawn in
the
idx
'th custom color.
Use getNumCustomColors
to get the number of custom colors found by
the last call to analyzePages
.
VB:
' analyze page 1
pdf.analyzePages(1, 1)
nColors = pdf.getNumCustomColors()
For i = 0 To nColors - 1
name = pdf.getCustomColorName(i)
cmyk = pdf.getCustomColorCMYK(i)
nObjects = pdf.getNumCustomColorObjects(i)
MsgBox(count & " nObjects drawn in the " & name & " custom color = CMYK " & Hex(cmyk))
Next i