We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

EML to TIFF: Conversion Removes Numbers, Dot and Blank Spaces from Text


We are facing below issue in convert:

We have observed that on all text mails(non-html), there are some characters being omitted when converting to a tiff.

The missing characters are a number, a dot and blank spaces at the starting of a line.

It observed for .eml file only and not for .msg file

Thank you for contacting support.

Please check your results using the latest version of Aspose.Email. If the issue persists, please share the following:

  • input EML file
  • code example reproducing the problem
  • output TIFF file

customer file testing.zip (30.9 KB)

Hello Team ,

Uploaded sample converted tiff and input eml file.

Thank you for the file samples.

I am assuming you are using the method described here to convert your EML file to TIFF (EML → MHTML → DOC → TIFF). Could you please confirm or share your code example?

With Aspose.Email 21.10 and Aspose.Words 21.11, I used the following code example:

using (var mailMessage = MailMessage.Load("CustomerSampleEmail.eml"))
    var messageStream = new MemoryStream();

    var saveOptions = SaveOptions.DefaultMhtml;
    saveOptions.MhtFormatOptions = MhtFormatOptions.WriteHeader;

    mailMessage.Save(messageStream, saveOptions);
    messageStream.Position = 0;

    var wordDocument = new Document(messageStream);
    wordDocument.Save("CustomerSampleEmail_out.tiff", SaveFormat.Tiff);

Please try to use it.

API Reference: MailMessage Class | MhtSaveOptions Class | Document Class

Hello Team ,

I have used above code as it is and it is working at my end.
in the output it is showing only evaluation purpose . so where I can get official fix (Production dlls) so I can merge those in our code.

If I understand correctly, you are using the evaluation version of Aspose.Email and/or Aspose.Words. To get a version without limitations, evaluation messages and watermarks, you can obtain a license by contacting Aspose.Purchase forum.

We already have licensed let me re-open similar ticket with paid support

Paid Ticket No: 175661

Paid Ticket No: 175661


Could you please clarify if you have both licenses for Aspose.Email and Aspose.Words or do you have an Aspose.Total license?