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

Free Support Forum - aspose.com

Conversion from word to PDF


I was planning to buy Aspose based on the ease of conversion of word docs to PDF. How the following code was failing (Which I got from documentation).

Aspose.Pdf.Pdf pdf = new Pdf();Aspose.Words.Document document = new Aspose.Words.Document("c:\\test.doc");

document.Save("c:\\test.xml", SaveFormat.Pdf);

pdf.BindXML("c:\\test2xml", null);

It was failing here at the BindXML because the xml was malformed.


Please advise ASAP


Bhaskar Ramachandran

This message was posted using Aspose.Live 2 Forum


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

Thanks for your inquiry. You should use direct-to-Pdf method. Please see the following link for more information:


Best regards,

Thank you Alexey. That worked.