Conversión de documento OpenOffice

Aspose.Slides for .NET ofrece la clase Presentation que representa un archivo de presentación. La clase Presentation ahora también puede acceder a ODP a través del constructor Presentation cuando se instancia el objeto.

A continuación se muestra un ejemplo de conversión de ODP a PPT/PPTX.

Ejemplo


 //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);

}

A continuación se muestra un ejemplo de conversión de PPT/PPTX a ODP.

Ejemplo


 //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);

}

Descargar ejemplo en ejecución

Descargar código de ejemplo