else if(value instanceof DeviceRGBColorSpace)
{return PdfName.DeviceRGB;}
else if(value instanceof DeviceCMYKColorSpace)
{return PdfName.DeviceCMYK;}
else
throw new NotImplementedException("colorSpace MUST be converted to its associated name; you need to implement a method in PdfDictionary that, given a PdfDirectObject, returns its associated key.");
}