This demo uses the DevExpress Presentation API to convert a presentation to another presentation format (PPTX, PPTM, POTX, POTM). You can use the predefined sample file or upload your own presentation. To do the latter, select Upload a File in the file selection drop-down menu.
Use the Convert Presentation to... dropdown button to select the output format, convert the presentation and download the result.
Sample document
Sample.pptx
using DevExpress.Docs.Presentation;
Stream ConvertToFormat(Stream inputStream, DocumentFormat targetFormat) {
using var presentation = new Presentation(inputStream);
var outputStream = new MemoryStream();
presentation.SaveDocument(outputStream, targetFormat);
outputStream.Position = 0;
return outputStream;
}