Get the name of a PDF color space type.
getColorSpaceName([in] int idx, [out, retval] BSTR *name)
The available color space types are defined by the PDF specification. As of PDF 1.7, they are: The numColorSpaces property and getColorSpaceName function return the items in the list above. (In general, that list won't change - i.e., numColorSpaces and getColorSpaceName will always return the same values - but future revisions to the PDF spec may add color space types, and XpdfAnalyze will be updated to match.)

The getImageInfo function returns a color space type, which is an integer in 0 .. n-1, where n is the value of the numColorSpaces property.

pdf.getImageInfo i, ..., colorSpace, ... MsgBox "color space: " & pdf.getColorSpaceName(colorSpace)