You are misunderstanding how Colorspace resources vs. the channels of DeviceN work. PDDocEnumResources() ONLY iterates over items directly in the Colorspace resources dictionaries of pages (and Xobjects etc). It does NOT "dive down" into the channels of a DeviceN, nor does it report on the colorspaces of Images or other things.
↧