getNumCustomColors
Get the number of custom (spot) colors.
getNumCustomColors([out, retval] int *n)
This function returns the number of custom colors (a.k.a. spot colors)
used on the pages specified in the last call to
analyzePages
.
The getCustomColorName
and getCustomColorCMYK
functions
provide descriptions of the custom colors.
The getNumCustomColorObjects
function returns the number of
objects drawn in each custom color.
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