轉換為 XPS
Contents
[
Hide
]
XPS 格式也被廣泛用於資料交換。Aspose.Slides for .NET 重視其重要性,並提供內建的支援,可將簡報轉換為 XPS 文件。
Presentation 類別所公開的 Save 方法可用於將整個簡報轉換為 XPS 文件。此外,XpsOptions 類別公開 SaveMetafileAsPng 屬性,可根據需求設定為 true 或 false。
string FilePath = @"..\..\..\Sample Files\";
string srcFileName = FilePath + "Conversion.pptx";
string destFileName = FilePath + "Converting to XPS.xps";
//實例化一個代表簡報檔案的 Presentation 物件
Presentation pres = new Presentation(srcFileName);
//將簡報儲存為 TIFF 文件
pres.Save(destFileName, Aspose.Slides.Export.SaveFormat.Xps);