Free Support Forum -

Images shows in Black&White color

When save doc as a image, i just get image in black and white color… How to get original color, Image Quality and image width[from original word document width]…?


Thanks for your inquiry. Could you please attach your input Word document, output image file showing the undesired behavior and code snippet here for testing? We will investigate the issue on our end and provide you more information.

Best regards,
This is my code.. In this code i cannot get original color(only black and white)

ImageSaveOptions options = new ImageSaveOptions(SaveFormat.Tiff);
options.PageIndex = 0;
options.PageCount = doc.PageCount;
options.TiffCompression = TiffCompression.Ccitt4;
options.Resolution = 300;
options.ImageColorMode = ImageColorMode.None;
doc.PageColor = Color.AliceBlue;
options.ColorMode = ColorMode.Normal;
doc.Save(HttpContext.Current.Response, documentName + ".jpg", ContentDisposition.Inline,options);

Thanks for your inquiry. The problem occurs because when you use TiffCompression.Ccitt4 or TiffCompression.Ccitt3, the document is converted to black and white. It is the expected behavior. To remedy this problem, you can use TiffCompression.Lzw or TiffCompression.Rle compressions. Hope, this helps.

Best regards,