Hi Team ,
Currently we are using aspose version 13.9.0.0 for converting the documents (email,word,pdf etc) to tiff .Currently it is converting in black and white ,however we would need to convert the colour email to colour tiff .Is there anyway we can acheive this with current version.
Below is the code snippet
string FullconvertedMultiTiffName = string.Empty;
//MailMessageLoadOptions msgopt = new MailMessageLoadOptions();
// load the MSG file using Aspose.Network for .NET
msg = MailMessage.Load(FullInputFileName, MessageFormat.Msg);
// msg = MailMessage.Load(FullInputFileName, msgopt);
msgStream = new MemoryStream();
msg.Save(msgStream, MailMessageSaveType.MHtmlFromat);
FullconvertedMultiTiffName = Path.Combine(OutputFolder, "MSGFile.tiff");
msgStream.Position = 0;
// load the MHTML stream using Aspose.Words for .NET
LoadOptions opt = new LoadOptions();
opt.LoadFormat = LoadFormat.Mhtml;
msgDocument = new Document(msgStream);
foreach (Shape shape in msgDocument.GetChildNodes(NodeType.Shape, true))
{
ResizeLargeImage(shape);
}
//TiffOptions tiffoptions = new TiffOptions(TiffExpectedFormat.Default);
ImageSaveOptions options = new ImageSaveOptions(Aspose.Words.SaveFormat.Tiff);
// options.ImageColorMode = ImageColorMode.BlackAndWhite;
options.ImageColorMode = ImageColorMode.None;
options.PageIndex = 0;
options.Resolution = 200;
options.PageCount = msgDocument.PageCount;
options.ImageBrightness = .40f;
options.TiffCompression = TiffCompression.None;
msgDocument.Save((Path.Combine(OutputFolder, "MSGFile.tiff")), options);
return FullconvertedMultiTiffName;