Free Support Forum -

RTF to DocX conversion error


I have attached a small document RTF document which I want to convert to DocX. The following exception is thrown using example Document Explorer that comes with Aspose.Words (using save as DocX):

Document Explorer.exe

Version 1.0.2939.8674

Friday, January 18, 2008 3:00:39 PM

System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.__Error.EndOfFile()
at System.IO.BinaryReader.FillBuffer(Int32 numBytes)
at System.IO.BinaryReader.ReadInt16()
at ೚.೤.೵(Byte[] ೊ)
at ೚.೤.೦(Byte[] ࢽ)
at ⪯.⪮.➧(Byte[] ೊ, ✔ ࠣ)
at ₾.⟿.༢(ShapeBase ృ, Boolean ⠂, ✔ ࠣ, ➫ ন)
at ⪯.⪮.VisitShapeStart(Shape shape)
at Aspose.Words.Drawing.Shape.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.ࠬ(DocumentVisitor ࠭)
at Aspose.Words.Paragraph.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.ࠬ(DocumentVisitor ࠭)
at Aspose.Words.Body.Accept(DocumentVisitor visitor)
at ⪯.⫑.༢(⪮ ༣)
at ⪯.⪮.⪿()
at ⪯.⪮.╊(┫ ┪)
at Aspose.Words.Document.Save(String fileName, SaveFormat fileFormat)
at DocumentExplorer.MainForm.SaveDocument() in C:\Program Files\Aspose\Aspose.Words\Demos\VisualBasic\DocumentExplorer\MainForm.vb:line 581

I am using version Aspose.Words.dll version 4.4.3.

I could open the attached file in Word and save it as DocX (did not work with OMPM because it complains about an unknown file type).



Thanks for your reporting this problem to us. I managed to reproduce the problem. I have created as issue # 4305 in our defect database. Please expect a reply before the next hotfix (within 2-3 weeks). We might just fix it by then or provide more information

Best regards.

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

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan