Hello,
I’m experimenting with the trial licence for Aspose.Words and I’ve written this code to deal with the attached MS Word document. I realize I’m going to have some information lost going to a Ccitt4, but I’m trying to minimize that lose. How would tweaking ImageBrightness and ImageContrast in the ImageSaveOptions object help me figure out a good happy medium?
var source = new FileInfo(@“TestFiles\Word2013With1Page.docx”);
var output = new FileInfo(source.FullName.Replace(".docx", “.tiff”));
if (output.Exists)
output.Delete();
var doc = new Document(source.FullName);
var saveOptions = new ImageSaveOptions(SaveFormat.Tiff)
{
ImageColorMode = ImageColorMode.BlackAndWhite,
TiffCompression = TiffCompression.Ccitt4,
Resolution = 200,
};
doc.Save(output.FullName, saveOptions);
Any feedback is much appreciated.