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

Free Support Forum - aspose.com

Conversion from word to PDF

Hi,

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.

pdf.Save("c:\\testconv.pdf");

Please advise ASAP

Regards,

Bhaskar Ramachandran


This message was posted using Aspose.Live 2 Forum

Hi

<?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:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/howto-convert-a-document-to-pdf.html

Best regards,

Thank you Alexey. That worked.