---
title: "PowerPoint to Image Conversion in UWP"
published_at: "2018-05-14T12:00:00+00:00"
modified_at: "2025-11-03T13:28:47+00:00"
url: "https://www.syncfusion.com/blogs/post/powerpoint-to-image-conversion-in-uwp"
excerpt: "Syncfusion is excited to share that PowerPoint to image conversion is now available for UWP applications from 2018 Volume 1 (version 16.1) onward. Before, Essential Presentation supported PowerPoint to image conversion in Windows Forms, WPF, ASP.NET, and ASP.NET MVC. Now,..."
taxonomy_category:
  - ".NET"
  - "C#"
  - "Development"
  - "Essential Studio"
  - "PowerPoint"
taxonomy_post_tag:
  - "convert slide to image"
  - "Display slides"
  - "PowerPoint Viewer"
  - "print slides"
  - "Slide Viewer"
  - "View slides in Windows phone"
---

# PowerPoint to Image Conversion in UWP

[Meikanda Nayanar I](https://www.syncfusion.com/blogs/author/meikandai)

![Image](https://www.syncfusion.com/blogs/wp-content/uploads/2018/08/PPT_Tile_772155c3.png)


Syncfusion is excited to share that PowerPoint to image conversion is now available for UWP applications from 2018 Volume 1 (version 16.1) onward. Before, [Essential Presentation](https://www.syncfusion.com/products/file-formats/presentation)
 supported PowerPoint to image conversion in Windows Forms, WPF, ASP.NET, and ASP.NET MVC. Now, you can convert PowerPoint presentations (PPTX) to images in UWP. This helps with viewing and printing a PowerPoint presentation from Windows desktop and mobile environments.

The following slide elements are supported in PowerPoint-to-image conversion:

- Text
- Bullets and numbering
- Shapes
- Tables
- Charts
- Images
- SmartArt diagrams
- Formatting


## Converting a PowerPoint slide to a high-quality image

Let’s learn how to convert a PowerPoint slide to an image in UWP.

### Prerequisites:

- Windows 10
- Visual Studio 2015 or 2017
- Windows 10 SDK

**Step 1:** Create a ** Blank App (Universal Windows)** and name it ** PowerPointDemo**.  
 [https://www.syncfusion.com/blogs/wp-content/uploads/2018/05/Creating-a-new-UWP-project-in-Visual-Studio.png](https://www.syncfusion.com/blogs/wp-content/uploads/2018/05/Creating-a-new-UWP-project-in-Visual-Studio.png)
  
 **Step 2:** Choose the target version (Essential Presentation is supported from the minimum version).


**Step 3:** Add the ** Syncfusion.Presentation.UWP** NuGet package as a reference to the project from the [Syncfusion UWP NuGet feed](http://nuget.syncfusion.com/nuget_universalwindows/nuget/getsyncfusionpackages/universalwindows)
. For more information about adding a NuGet feed in Visual Studio and installing NuGet packages, refer to our [documentation](https://help.syncfusion.com/extension/syncfusion-nuget-packages/nuget-packages)
.

You can also install this package from the NuGet package manager console by executing the following command.

```
Install-package Syncfusion.Presentation.UWP -source http://nuget.syncfusion.com/nuget_universalwindows/nuget/getsyncfusionpackages/universalwindows
```


**Step 4:** Add an input PowerPoint document to the asset folder. Right-click the PowerPoint document, select ** Properties**, and set its build action as ** Embedded resource**.

**Step 5:** Add a button in the MainPage.xaml.

```
<Page
    x:Class="PresentationDemo.MainPage"
    >="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    >="http://schemas.microsoft.com/expression/blend/2008"
    >="http://schemas.microsoft.com/winfx/2006/xaml"
    >="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Button Name="ConvertPPTX" HorizontalAlignment="Center" VerticalAlignment="Center" Content="Convert" Click="ConvertPPTX_Click"></Button>
    </Grid>
</Page>
```

**Step 6:** Add the following code in the ** ConvertPPTX_Click** method in the MainPage.xaml.cs file to retrieve the embedded PowerPoint file as stream and convert the PowerPoint slide to an image using the ** SaveAsImageAsync** method of ** ISlide** interface.

**Note:** It is mandatory to instantiate the **ChartToImageConverter** property of ** IPresentation** interface, otherwise the charts will be left blank in the resultant image.

```
//Get the embedded PowerPoint presentation. You can use a file picker to read a file instead.
Assembly assembly = this.GetType().GetTypeInfo().Assembly;
using (Stream stream =    assembly.GetManifestResourceStream("PowerPointDemo.Assets.Template.pptx"))
{
        //Load the presentation file from stream.
        using (IPresentation _presentation = Presentation.Open(stream))
        {
            //Initialize ‘ChartToImageConverter’ to convert the charts in slides
           _presentation.ChartToImageConverter = new ChartToImageConverter();

            //Get the first slide in the presentation.
            ISlide slide = _presentation.Slides[0];

            //Create a storage file to save the converted image.
            StorageFile sampleFile = await KnownFolders.PicturesLibrary.CreateFileAsync("Slide1.png", CreationCollisionOption.ReplaceExisting);

            //Convert the slide to an image.
            using (var imageStream = await sampleFile.OpenStreamForWriteAsync())
            {
                await slide.SaveAsImageAsync(imageStream);
            }
        }
}
```


## Converting a PowerPoint slide to a thumbnail image

You can also generate images in custom sizes by enabling rendering options. The below code example shows how to convert a PowerPoint slide to a thumbnail image.

```
//Set the rendering options to scale the image at 0.25. The default scaling factor is 1.
RenderingOptions options = new RenderingOptions() { ScaleX = 0.25f, ScaleY = 0.25f };
//Convert the slide to an image.
using (var imageStream = await sampleFile.OpenStreamForWriteAsync())
{
await slide.SaveAsImageAsync(imageStream);
}
```

You can also print a PowerPoint presentation by printing the converted images. The images can be printed using the UWP native printer APIs.

A simple PowerPoint viewer UWP application can be [downloaded](https://www.syncfusion.com/downloads/support/directtrac/general/ze/PresentationViewer-158744858)
, showing you how to display a slide and print the PowerPoint presentation.


PowerPoint to Image Conversion in UWP in Desktop and Mobile


## Conclusion

With PowerPoint presentation-to-image conversion, you can achieve the below functionality in UWP applications.

- Display PowerPoint slides.
- Print a PowerPoint presentation.

You can convert existing PowerPoint slides or create a slide from scratch and then convert it to an image as required.

If you are new to our Presentation library, we highly recommend you follow our [Getting Started guide](https://help.syncfusion.com/file-formats/presentation/getting-started)
.

If you’re already a Syncfusion user, you can download the product setup on [Direct-Trac](https://www.syncfusion.com/support/directtrac/downloads/16_1_0_24?file=fileformats)
. If you’re not yet a Syncfusion user, you can download a free, [30-day trial](https://www.syncfusion.com/downloads)
.

If you have any questions or require clarification about this feature, please let us know in the comments below. You can also contact us through our [support forum](https://www.syncfusion.com/forums)
 or [Direct-Trac](https://www.syncfusion.com/support/directtrac/)
. We are happy to assist you!
