تحويل مستند OpenOffice

Aspose.Slides for .NET تقدم فئة Presentation التي تمثل ملف عرض تقديمي. يمكن الآن لفئة Presentation أيضًا الوصول إلى ODP عبر منشئ Presentation عند إنشاء الكائن.

فيما يلي مثال على التحويل من ODP إلى PPT/PPTX.

مثال


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

}

فيما يلي مثال على التحويل من PPT/PPTX إلى ODP.

مثال


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

}

تنزيل المثال التشغيلي

تنزيل عينة الكود