Hi,
We’re trying to convert the images on our PDF pages to grayscale and then process each page into a JPEG but Page.MakeGrayscale() doesn’t seem to be doing anything to the PDF page or its images - here’s our use case:
var page = pdfDoc.Pages[pageNum];
var jpegDevice = new JpegDevice(width, height, resolution);
var imageString = string.Empty;
using (MemoryStream ms = new MemoryStream())
{
page.MakeGrayscale();// make grayscale
jpegDevice.Process(page, ms);// convert page to JPEG and save in memory stream
imageString = Convert.ToBase64String(ms.ToArray());// get image source string
}
return imageString;
However the images continue to appear in full color… I talked to someone from support and they said it’s known that MakeGrayscale is currently “malfunctioning” - are we using MakeGrayscale incorrectly? Or is the method broken? If it is broken, any idea on an ETA of when it might be fixed?
Thank you,
Thank you,
-Michael