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

Free Support Forum - aspose.com

FileCorruptedException when loading this RTF

The attached RTF file (originally generated via OCR) has been stripped down to isolate the problem, which is the negative value for the \pnstart tag. I believe the correct thing to do is ignore \pnstart when cases it has a negative value. Word processing apps (including Word and WordPad) open this file without reporting an error. WordPad has the unexpected behavior of interpreting “-1” as 65535.

Here’s the exception that occurs when loading this RTF with Aspose.Words .NET

Aspose.Words.FileCorruptedException was caught
Message=“The document appears to be corrupted and cannot be loaded.”
at Aspose.Words.Document.ԁ(Stream Ӿ, LoadFormat ӿ, String Ԁ)
at Aspose.Words.Document.ӽ(Stream Ӿ, LoadFormat ӿ, String Ԁ)
at Aspose.Words.Document…ctor(Stream stream, String baseUri, LoadFormat loadFormat, String password)
at DocumentConversion.DocumentConverter.ConverterThread2.DoConversion()
InnerException: System.ArgumentOutOfRangeException
Message=“Specified argument was out of the range of valid values.\r\nParameter name: value”
at Aspose.Words.Lists.ListLevel.set_StartAt(Int32 value)
at ⮻.⸅.⯇(ⲓ ⯈)
at ⮻.⮺.⯇(ⲓ ⯈)
at ⮻.⮺.࠽()
at Aspose.Words.Document.ԁ(Stream Ӿ, LoadFormat ӿ, String Ԁ)


<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for reporting this problem to us. I managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.

Best regards,

I upgraded from 8.0 to 9.0 and that fixed this issue.

Hi Robert,

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for additional information. It is odd. I just tried to open the attached document and it seems the problem still remains. So I leave the issue opened yet.

Best regards.

The issues you have found earlier (filed as 16658) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.