Convert to PDF

This demo uses the DevExpress Presentation API library to convert presentations to PDF. 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.

Click Convert Presentation to PDF to convert the presentation and download the result.

Sample document
Sample.pptx



using DevExpress.Docs.Presentation;

Stream ConvertToPdf(Stream inputStream) {
    using var presentation = new Presentation(inputStream);

    var outputStream = new MemoryStream();

    presentation.ExportToPdf(outputStream);

    outputStream.Position = 0;
    return outputStream;
}