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

Free Support Forum - aspose.com

Aspose.Words.Document.Save as pdf gives XML


I am trying to save a Document as a PDF (I have Aspose.Pdf). When I call the Save method of the Aspose.Words.Documet object, the result is XML, not a PDF, i.e.,

myDoc.Save(aBytes, Aspose.Words.SaveFormat.AsposePdf);

results in:

<?xml version="1.0" encoding="UTF-8"?>

What’s going on? How can I get it to generate an actual PDF?



Thanks for your inquiry. Aspospose.Pdf is Aspose.Pdf.Xml format that can be read by Aspose.Pdf to produce a PDF file. To learn more about converting to PDF see the following link.
I hope this could help.
Best regards.