RGB colorspace to CMYK or grayscale

Hi Team,

I am converting .doc files to .pdf, using aspose in .net platform(C#). Now i need to convert RGB colorspace to CMYK or grayscale.

Is it possible to do the above with Aspose.pdf? If so, could you please send me the sample C# code snippet for the same.

Thanks,