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

Free Support Forum - aspose.com

Error Converting WordML to PDF


We have a batch process that can generate 1000’s of potential documents in WordML and we need them to be converted to PDF.

The conversion seems to have trouble with the following section in the wordml

<w:binData w:name=“oledata.mso” />

{“The document appears to be corrupted and cannot be loaded.”}
{“Unable to read beyond the end of the stream.”}
at System.IO.BinaryReader.FillBuffer(Int32 numBytes)
at System.IO.BinaryReader.ReadInt64()
at xb92b7270f78a4e8d.x1ea60bde2b5d0d28…ctor(BinaryReader reader)
at xb92b7270f78a4e8d.xd8c3135513b9115b.x5d95f5f98c940295(Stream xcf18e5243f8d5fd3)
at xb92b7270f78a4e8d.xd8c3135513b9115b…ctor(Stream stream)
at x2cc366c8657e2b6a.x21a61af92fc2a45e.xb80d58867d2d12aa()
at x2cc366c8657e2b6a.x21a61af92fc2a45e.x06b0e25aa6ad68a9()
at Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)

at Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
at Aspose.Words.Document.x5d95f5f98c940295(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
at Aspose.Words.Document…ctor(String fileName, LoadOptions loadOptions)
at Aspose.Words.Document…ctor(String fileName)
at WordToPDF.Form1.button1_Click(Object sender, EventArgs e) in C:\Users\durata\documents\visual studio 2010\Projects\WordToPDF\WordToPDF\Form1.cs:line 32

Does Aspose.Words support these tags?

Hi Darren,

Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 11.11.0, I managed to reproduce this issue on my side. I have logged this issue in our bug tracking system. The issue ID is WORDSNET-7647. Your request has also been linked to this issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Best regards,

The issues you have found earlier (filed as WORDSNET-7647) have been fixed in this .NET update and this Java update.

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