Conversion de document OpenOffice

Aspose.Slides for .NET propose la classe Presentation qui représente un fichier de présentation. La classe Presentation peut désormais également accéder à ODP via le constructeur Presentation lorsque l’objet est instancié.

Voici un exemple de conversion d’ODP en PPT/PPTX.

Exemple


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

}

Voici un exemple de conversion de PPT/PPTX en ODP.

Exemple


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

}

Télécharger l’exemple d’exécution

Télécharger le code d’exemple