rtf2.zip (5.7 KB)
When opening an RTF file with Aspose.Words.dll (version 21.7) the following error occurs:
Aspose.Words.FileCorruptedException
HResult=0x80131500
Message=The document appears to be corrupted and cannot be loaded.
Source=Aspose.Words
StackTrace:
at Aspose.Words.Document.(Stream , LoadOptions )
at Aspose.Words.Document.(Stream , LoadOptions )
at Aspose.Words.Document..ctor(Stream stream, LoadOptions loadOptions)
[ETC]
Inner Exception 1:
InvalidOperationException: Expected 1 bit per pixel only here.
The code used for opening the file is as follows:
var document = new Aspose.Words.Document("rtf2.rtf");
Please find attached the problematic file. It is in fact not corrupted because MS Word opens it and displays it correctly.
Let us know if we can expect a fix for this.