HTML
JPG
PDF
XML
POTX
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.
Load the POTX file with a
Presentationobject.Iterate through each slide in the
Presentation.Render each slide with
GetImage.Call the image
Savemethod withImageFormat.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
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)