using (Aspose.Pdf.Document document = new Aspose.Pdf.Document(item.FullName))
{
Aspose.Pdf.RgbToDeviceGrayConversionStrategy strategy = new Aspose.Pdf.RgbToDeviceGrayConversionStrategy();
for (int idxPage = 1; idxPage <= document.Pages.Count; idxPage++)
{
// Get instance of particular page inside PDF
Page page = document.Pages[idxPage];
// Convert the RGB colorspace image to GrayScale colorspace
strategy.Convert(page);
}
// Save resultant file
document.Save("");
document.Dispose();
}
}
}
I am trying to convert the Attached PDF file to Greyscale but i was unable to do so and am getting error as : Not supported image type, Can you please check and update this issue @ASPOSE Team
https://drive.google.com/file/d/1d4WQaQqkQxdlvQhg122IQWJABPIirecj/view?usp=sharing