Hello
We want to extract the text from mail in HTML format.
It seems that when the document have a lot of images the conversion is very slow.
Is there a way to specify to don’t load the images like the SkipInlineImages in Aspose.Email.SaveOptions.DefaultMhtml ?
Thanks you
Our convert method :
public static int ExtractText(string inputFile, string outputFile, ref string errmsg)
{
try
{
// The specified file can be opened in MS Word when opening it with Aspose.Words here.
// Open the document.
FileStream docStream = new FileStream(inputFile, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
try
{
Document doc = new Document(docStream);
doc.Save(outputFile, SaveFormat.Text);
doc.Cleanup();
return (0);
}
finally
{
// Close stream
docStream.Close();
docStream.Dispose();
GC.Collect();
}
}
catch (Exception ex)
{
errmsg = ex.Message + " | " + ex.StackTrace;
GC.Collect();
return (1);
}
}