Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Convert PowerPoint to Word using C#
// Load the PowerPoint presentation
using(Aspose.Slides.Presentation presentation = new Aspose.Slides.Presentation("pres.pptx"))
using (var stream = new MemoryStream())
// Save presentation to memory stream
presentation.Save(stream, SaveFormat.Html);
stream.Seek(0, SeekOrigin.Begin);
// Load the content of the presentation to a Word document
var doc = new Aspose.Words.Document(stream);
// Save the Word document
doc.Save("pres.docx", Aspose.Words.SaveFormat.Docx);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment