Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Created July 7, 2025 20:44
Show Gist options
  • Save aspose-com-gists/b9f7f777b01ff17280fc93a2137a3006 to your computer and use it in GitHub Desktop.
Save aspose-com-gists/b9f7f777b01ff17280fc93a2137a3006 to your computer and use it in GitHub Desktop.
Convert ODP to PPTX
using Aspose.Slides;
using Aspose.Slides.Export;
namespace CSharp.Presentations.Conversion
{
class ODPToPPTX
{
static void Main()
{
// Define the path to the documents directory.
string dataDir = "data";
string srcFileName = dataDir + "sample.odp";
string destFileName = dataDir + "AccessOpenDoc.pptx";
//Instantiate a Presentation object that represents a presentation file.
using (Presentation pres = new Presentation(srcFileName))
{
//Save the file to PPTX format. S
pres.Save(destFileName, SaveFormat.Pptx);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment