HTML JPG PDF XML POTX
Aspose.Slides for .NET
GIF

Convert POTX to GIF in C#

Convert POTX files to GIF images in C# using server-side Aspose.Slides APIs.

Convert POTX to GIF Using C#

Use Aspose.Slides for .NET to load a POTX presentation and render each slide as a GIF image. Install the package from NuGet or use the following Package Manager Console command.

Package Manager Console Command

PM> Install-Package Aspose.Slides.NET

This sample code shows POTX to GIF C# Conversion

using var presentation = new Presentation("template.potx");

foreach (var slide in presentation.Slides)
{
    using var image = slide.GetImage(1f, 1f);
    image.Save($"Slide_{slide.SlideNumber}.gif", ImageFormat.Gif);
}
 

How to Convert POTX to GIF via C#

.NET developers can convert POTX files to GIF in a few lines of code.

  1. Load the POTX file with a Presentation object.

  2. Iterate through each slide in the Presentation.

  3. Render each slide with GetImage.

  4. Call the image Save method with ImageFormat.Gif.

System Requirements

Before running the .NET conversion sample source code, make sure that you have the following prerequisites.

  • A supported operating system with .NET or Mono installed.
  • Development environment like Microsoft Visual Studio.
  • Aspose.Slides for .NET referenced in your project.

Free App to Convert POTX to GIF

Try our free MP4 To MP3 app

Other Supported Conversions

You can also convert POTX into many other file formats including a few listed below.

POTX TO BMP (Bitmap Image)
POTX TO EMF (Enhanced Metafile Format)
POTX TO HTML (Hypertext Markup Language)
POTX TO JPEG (JPEG Image)
POTX TO ODP (OpenDocument Presentation Format)
POTX TO OTP (OpenDocument Presentation Template)
POTX TO PDF (Portable Document Format)
POTX TO PNG (Portable Network Graphics)
POTX TO POT (PowerPoint Template Files)
POTX TO POTM (PowerPoint Macro-Enabled Template)
POTX TO PPS (PowerPoint Slide Show)
POTX TO PPSM (Macro-Enabled Slide Show)
POTX TO PPSX (PowerPoint Slide Show)
POTX TO PPT (PowerPoint 97-2003 Presentation)
POTX TO PPTM (Macro-Enabled Presentation)
POTX TO PPTX (Open XML Presentation Format)
POTX TO SVG (Scalable Vector Graphics)
POTX TO SWF (SWF Format)
POTX TO TIFF (Tagged Image File Format)
POTX TO XPS (XML Paper Specification)