Convert PPT PPTX to DOC DOCX
Contents
[
Hide
]
How to convert PowerPoint PPTX to Word (DOC or DOCX)? This can easily be done with Aspose.Slides and Aspose.PDF which are part of Conholdate.Total.
Convert PPT PPTX to DOC DOCX in C#
To convert PPT, PPTX or any PowerPoint format to Word (DOC or DOCX), you can follow these simple steps.
- Load the PowerPoint file
- Save it to PDF stream
- Load the PDF stream
- Save it as DOC or DOCX
Following code shows these steps in detail.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete example, please visit https://docs.conholdate.com/net/powerpoint-to-word/ | |
// Open a PowerPoint file | |
Aspose.Slides.Presentation pres = new Aspose.Slides.Presentation("Input.pptx"); | |
using (var pdfStream = new System.IO.MemoryStream() ) | |
{ | |
// Save the presentation in PDF format | |
pres.Save(pdfStream, Aspose.Slides.Export.SaveFormat.Pdf); | |
//Read the PDF Stream | |
Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(pdfStream); | |
// Save the output to DOCX | |
pdfDocument.Save("powerpoint-to-word.docx", Aspose.Pdf.SaveFormat.DocX); | |
} |