Конвертация документа OpenOffice
Contents
[
Hide
]
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);
}