Hi,
Aspose.Slides.Presentation ppt = new Aspose.Slides.Presentation(Path.Combine(path, fileName));
//ppt.Save(Path.Combine(path, "ConvertedFiles", "output.docx"), save;
var stream = new MemoryStream();
ppt.Save(stream, Aspose.Slides.Export.SaveFormat.Html);
stream.Flush();
stream.Seek(0, SeekOrigin.Begin);
// stream.Position = 0;s
// Load the content of the presentation to a Word document
var docx = new Aspose.Words.Document(stream);
// Save the Word DOCX document
docx.Save(Path.Combine(path, "ConvertedFiles", "output.docx"), Aspose.Words.SaveFormat.Docx);
I was tring to convert a ppt file to docx using the above code.
The resultant file has some extra texts added which is not required.
input file–> sample.zip (704.0 KB)
resultant file → output.docx (2.8 MB)