HTML
JPG
PDF
XML
ODP
PNG
Convert ODP to PNG in C#
Convert ODP files to PNG images in C# using server-side Aspose.Slides APIs.
Convert ODP to PNG Using C#
Use Aspose.Slides for .NET to load an ODP presentation and render each slide as a PNG 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 ODP to PNG C# Conversion
using var presentation = new Presentation("template.odp");
foreach (var slide in presentation.Slides)
{
using var image = slide.GetImage(1f, 1f);
image.Save($"Slide_{slide.SlideNumber}.png", ImageFormat.Png);
}
How to Convert ODP to PNG via C#
.NET developers can easily load & convert ODP files to PNG in just a few lines of code.
Load the ODP file with a
Presentationobject.Iterate through each slide in the
Presentation.Render each slide with
GetImage.Call the image
Savemethod withImageFormat.Png.
System Requirements
Before you run the ODP to PNG conversion C# code, make sure that your environment includes 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 ODP to PNG
Other Supported Conversions
You can also convert ODP into many other file formats including a few listed below.
ODP TO BMP (Bitmap Image)
ODP TO EMF (Enhanced Metafile Format)
ODP TO GIF (Graphics Interchange Format)
ODP TO HTML (Hypertext Markup Language)
ODP TO JPEG (JPEG Image)
ODP TO OTP (OpenDocument Presentation Template)
ODP TO PDF (Portable Document Format)
ODP TO POT (PowerPoint 97–2003 Template)
ODP TO POTM (PowerPoint Macro-Enabled Template)
ODP TO POTX (PowerPoint Template)
ODP TO PPS (PowerPoint Slide Show)
ODP TO PPSM (Macro-enabled Slide Show)
ODP TO PPSX (PowerPoint Slide Show)
ODP TO PPT (PowerPoint 97-2003 Presentation)
ODP TO PPTM (Macro-enabled Presentation File)
ODP TO PPTX (Open XML Presentation Format)
ODP TO SVG (Scalable Vector Graphics)
ODP TO SWF (SWF Format)
ODP TO TIFF (Tagged Image File Format)
ODP TO XPS (XML Paper Specification)