How to Convert ODP to PPTX in C#

This topic focuses on how to convert ODP to PPTX in C# with the help of a few simple lines of code. It covers all the configuration details and runnable sample code that can be used to develop an ODP to PPTX converter in C#. You will also get information to customize the loading of the source ODP file and save the PPTX file on the disk.

Steps to Convert ODP to PPTX in C#

  1. Configure the development environment to add Aspose.Slides for .NET using the NuGet package manager for ODP to PPTX conversion
  2. Create the LoadOptions class object to set the load options
  3. Set the presentation load format to ODP
  4. Load the source ODP using the Presentation class with the specified load options
  5. Convert the ODP to PPTX using the Save method

The aforementioned steps guide us to change ODP to PPTX in C#. You need to specify the load format for the ODP file and therefore, the LoadOptions class object is declared in the beginning as it contains the LoadFormat property that is set to ODP. If your ODP file is password protected, you need to set the password also using the LoadFormat class object and then load the source ODP file for saving as a PPTX.

Code to transform ODP to PPTX in C#

This code aids in writing a basic ODP to PPTX converter software in C# where LoadOptions class is used that also contains other properties like setting the password for ODP, setting spreadsheet options to decide the formula calculation for charts, etc., managing the loading of external resources, and setting warning callbacks to name a few. You can also perform other advanced operations as well including modifying the loaded ODP file similar to MS PowerPoint before saving it as a PPTX.

This tutorial has walked us through the process of converting ODP to PPTX in C#. However, if you are interested in converting PNG to PPTX, refer to the article on how to convert PNG to PowerPoint slide in C#.

 English