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

Free Support Forum - aspose.com

Word 2010 Aspose Words.NET - can't convert doc saved as docx to pdf

I’m getting a null reference exception bubbling out of depths of Aspose.words assembly and can’t figure it out.


This is assembly Aspose.Words v 9.5.0.0.

I have a Word document with a .doc extension. When I convert that to PDF using the following, everything is beautiful, the document looks great.

 public override void SaveAsPDF(Stream stream)
{
Aspose.Words.Document doc = new Aspose.Words.Document(this.Path);
Aspose.Words.Saving.SaveOptions so = SaveOptions.CreateSaveOptions(SaveFormat.Pdf);
doc.Save(stream, so);
}
Now if I save this word document as a docx doc in Word 2010, and try to convert the docx file, I get a null ref exception with the following stack trace:
System.NullReferenceException : Object reference not set to an instance of an object.
at x996431aaaaf00543.x3064c6a807d3a0a8.x5b81632e5b71b64c(XmlDocument x5510939d5b9dcd91)
at x123e776942c1903d.xd959deded1f04060.xe406325e56f74b46(DrawingML x91ebfdc604552811)
at x4a820b097ff6c983.xdbc6e5b1526a2f0d.x6352d2f80acb683d(xa7492065dee59ad0 x5906905c888d3d98)
at x59d6a4fc5007b7a4.x6a53cec2ada67e5c.x7012609bcdb39574(x3adba2572f6b9747 x672ff13faf031f3d)
at x59d6a4fc5007b7a4.xbf5b03855bcdbdae.x7012609bcdb39574(x3adba2572f6b9747 x672ff13faf031f3d)
at x59d6a4fc5007b7a4.xc6ae5bf3fc6721e2.xa246eb87eda7b55d(x398b3bd0acd94b61 xd7e5673853e47af4, x3adba2572f6b9747 x672ff13faf031f3d)
at x59d6a4fc5007b7a4.xc6ae5bf3fc6721e2.x7012609bcdb39574(x3adba2572f6b9747 x672ff13faf031f3d)
at x59d6a4fc5007b7a4.x512b9a381ad7cd9c.x7012609bcdb39574(x3adba2572f6b9747 x672ff13faf031f3d)
at x59d6a4fc5007b7a4.xdcf47a8f1807f37c.x7012609bcdb39574(x3adba2572f6b9747 x672ff13faf031f3d)
at x4a820b097ff6c983.xae895851cacb1a3b.xe406325e56f74b46(xdcf47a8f1807f37c x32eaf67d0ee57cb7, xdeb77ea37ad74c56 x1e972e751678e682)
at xf989f31a236ff98c.x6c74398bceb133f8.xa2e0b7f7da663553(x8556eed81191af11 x5ac1382edb7bf2c2)
at < my code finished here >

I have attached both documents.

Any idea about the cause of this issue?

Dear Nick,


Thank you for reporting us the problem.

Your Word 2010 document contains OOXML Chart. Unfortunately, Aspose.Words does not support OOXML Diagrams and Charts during rendering. Your request has been linked to the appropriate issue. We will let you know once this feature is supported.

DLana,


Thanks, your info helped me set up a workaround.

Nick

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


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

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


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

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


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

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


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