Conversion of OpenOffice Document

Aspose.Slides for .NET offers Presentation class that represents a presentation file. Presentation class can now also access ODP through Presentation constructor when the object is instantiated.

Below is the example of converting from ODP to PPT/PPTX.

Example


 //Instantiate a Presentation object that represents a presentation file

using(PresentationEx pres = new PresentationEx("OpenOfficePresentation.odp"))

{

   //Saving the PPTX presentation to PPTX format

   pres.Save("ConvertedFromOdp",Aspose.Slides.Export.SaveFormat.Pptx);

}

Below is the example of converting from PPT/PPTX to ODP.

Example


 //Instantiate a Presentation object that represents a presentation file

using (PresentationEx pres = new PresentationEx("ConversionFromPresentation.pptx"))

{

   //Saving the PPTX presentation to PPTX format

   pres.Save("ConvertedToOdp", Aspose.Slides.Export.SaveFormat.Odp);

}

Download Running Example

Download Sample Code