オープンオフィス ドキュメントの変換
Contents
[
Hide
]
Aspose.Slides for .NET は、プレゼンテーション ファイルを表す Presentation クラスを提供します。Presentation クラスは、オブジェクトがインスタンス化される際に Presentation コンストラクタを通じて ODP にもアクセスできるようになりました。
以下は ODP から PPT/PPTX への変換例です。
Example
//プレゼンテーション ファイルを表す Presentation オブジェクトをインスタンス化する
using(PresentationEx pres = new PresentationEx("OpenOfficePresentation.odp"))
{
//PPTX 形式でプレゼンテーションを保存する
pres.Save("ConvertedFromOdp",Aspose.Slides.Export.SaveFormat.Pptx);
}
以下は PPT/PPTX から ODP への変換例です。
Example
//プレゼンテーション ファイルを表す Presentation オブジェクトをインスタンス化する
using (PresentationEx pres = new PresentationEx("ConversionFromPresentation.pptx"))
{
//ODP 形式でプレゼンテーションを保存する
pres.Save("ConvertedToOdp", Aspose.Slides.Export.SaveFormat.Odp);
}