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

Free Support Forum - aspose.com

Problem with Docx document and summary

Hi,

I am trying to convert my Word document (Docx) to a pdf document. The Word document contains a summary and one title.
So, i use Aspose.Words and Aspose.Pdf :

Document srcDoc = new Document(docPath);
MemoryStream xmlDoc = new MemoryStream();
srcDoc.Save(xmlDoc, Aspose.Words.SaveFormat.AsposePdf); <<<<< BUG !
xmlDoc.Position = 0;
pdf.BindXML(xmlDoc, null);
pdf.Save(pdfPath);

When i try to save the document, i have this error :

Value cannot be null.
Parameter name : value

What is wrong with my code ? I join to this post my word document.

Thanks a lot for your answers.
Gilles.

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

Thanks for your reporting this to us. I managed to reproduce this problem. I have created new issue #4892 in our defect database. I will notify you as soon as it is fixed.

As a workaround you can convert your DOCX file to DOC using Word 2007 and then convert it to PDF.

Best regards.

Hi,

Thanks for your answer. I will wait your notification.
Best Regards.

Gilles

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