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

Thanks for your inquiry. You should use direct-to-Pdf method. Please see the following link for more information:
https://docs.aspose.com/words/net/convert-a-document-to-pdf/
Best regards,

Thank you Alexey. That worked.