Created
July 7, 2025 20:44
-
-
Save aspose-com-gists/b9f7f777b01ff17280fc93a2137a3006 to your computer and use it in GitHub Desktop.
Convert ODP to PPTX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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