Transparency Blending Color Space

Q:

When I open Output Preview in Acrobat, it lists the “Transparency Blending Color Space”. Where is this value coming from, and how can I discover it in a PDF document using the PDFNet SDK?

A:

This value is populated from a colorspace specified in a page’s optional Group dictionary. It’s possible to instantiate a ColorSpace object from this dictionary. For example:

Page page = //…
Obj group = page.GetSDFObj().FindObj(“Group”);
if (group && group.IsDict())
{
Obj cs_obj = group.FindObj(“CS”);
if (cs_obj)
{
ColorSpace cs(cs_obj);
}
}