Convert PowerPoint to Image in .NET MAUI

13 Mar 20245 minutes to read

Syncfusion PowerPoint is a .NET MAUI PowerPoint library used to create, read, edit and convert PowerPoint presentation programmatically without Microsoft PowerPoint or interop dependencies. Using this library, you can convert a PowerPoint to image in .NET MAUI.


To create .NET Multi-platform App UI (.NET MAUI) apps, you need the latest versions of Visual Studio 2022 and .NET 6. For more details, refer here.

Steps to convert PowerPoint to Image programmatically

Step 1: Create a new C# .NET MAUI app. Select .NET MAUI App (Preview) from the template and click the Next button.

Create the MAUI app in Visual Studio

Step 2: Enter the project name and click Create.

Create a project name for your new project

Step 3: Install the Syncfusion.PresentationRenderer.NET NuGet package as a reference to your project from

Install Syncfusion.PresentationRenderer.NET NuGet package


Starting with v16.2.0.x, if you reference Syncfusion assemblies from trial setup or from the NuGet feed, you also have to add “Syncfusion.Licensing” assembly reference and include a license key in your projects. Please refer to this link to know about registering Syncfusion license key in your application to use our components.

Step 4: Add a new button to the MainPage.xaml as shown below.

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns=""

        <Grid RowSpacing="25" RowDefinitions="Auto,Auto,Auto,Auto,*"
            Padding="{OnPlatform iOS='30,60,30,30', Default='30'}">
                Text="Convert PPTX to Image"
                SemanticProperties.Hint="Convert PPTX to Image"
                HorizontalOptions="Center" />

Step 5: Include the following namespaces in the MainPage.xaml.cs file.

using Syncfusion.Presentation;
using Syncfusion.PresentationRenderer;

Step 6: Add a new action method ConvertPPTXtoImage in MainPage.xaml.cs and include the below code snippet to convert a PowerPoint to Image in .NET MAUI.

//Loading an existing PowerPoint presentation.
Assembly assembly = typeof(App).GetTypeInfo().Assembly;
//Open the existing PowerPoint presentation with loaded stream.
using (IPresentation pptxDoc = Presentation.Open(assembly.GetManifestResourceStream("Convert_PowerPoint_Presentation_to_Image.Assets.Input.pptx")))
    //Initialize the PresentationRenderer.
    pptxDoc.PresentationRenderer = new PresentationRenderer();
    //Converts the first slide into image.
    Stream stream= pptxDoc.Slides[0].ConvertToImage(ExportImageFormat.Jpeg);
    //Reset the stream position.
    stream.Position = 0;
    //save and Launch the image file.
    SaveService saveService = new();
    saveService.SaveAndView("PPTXtoImage.Jpeg", "application/jpeg", stream as MemoryStream);

You can download a complete working sample from GitHub.

By executing the program, you will get the image as follows.

PowerPoint to Image on macOS

Helper files for .NET MAUI

Refer the below helper files and add them into the mentioned project. These helper files allow you to save the stream as a physical file and open the file for viewing.

Folder Name File Name Summary

.NET MAUI Project


Represent the base class for save operation.



Save implementation for Windows.



Save implementation for Android device.

Mac Catalyst


Save implementation for Mac Catalyst device.



Save implementation for iOS device



Helper classes for viewing the PowerPoint Presenatation in iOS device

Click here to explore the rich set of Syncfusion PowerPoint Library (Presentation) features.

An online sample link to convert PowerPoint Presentation to image in ASP.NET Core.