HTML
JPG
PDF
XML
ODP
XPS
Convert ODP to XPS in C#
Convert ODP files to XPS in C# using server-side Aspose.Slides APIs.
Convert ODP to XPS Using C#
Use Aspose.Slides for .NET to load an ODP presentation and save it as an XPS file. 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 XPS C# Conversion
using var presentation = new Presentation("template.odp");
presentation.Save("output.xps", SaveFormat.Xps);
How to Convert ODP to XPS via C#
.NET developers can easily load & convert ODP files to XPS in just a few lines of code.
Load the ODP file with a
Presentationobject.Call the
Savemethod with the output file path andSaveFormat.Xps.Use the output XPS file at the specified path.
System Requirements
Before you run the ODP to XPS 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 XPS
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 PNG (Portable Network Graphics)
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)