Hi,
I am trying to convert a pdf to grey scale (black and white) using the following code from your documentation
//using (Aspose.Pdf.Document document = new Aspose.Pdf.Document(filePath))
//{
// Aspose.Pdf.Engine.Presentation.RgbToDeviceGrayConversionStrategy strategy = new Aspose.Pdf.Engine.Presentation.RgbToDeviceGrayConversionStrategy();
// for (int idxPage = 1; idxPage <= document.Pages.Count; idxPage++)
// {
// // get instance of particular page inside PDF
// Aspose.Pdf.Page page = document.Pages[idxPage];
// // convert the RGB colorspace image to GrayScale colorspace
// strategy.Convert(page);
// }
// // save resultant file
// document.Save(outputFilePath);
//}
But the font color is not changed to Black. It still shows some colored fonts.
Please help me out.
Thanks.