原創|產品更新|編輯:李顯亮|2020-11-18 10:01:17.473|閱讀 306 次
概述:Aspose.Slides for .Net更新至v20.11,允許測試演示密碼以打開,持Aspose.Slides中的地圖類型圖表,支持驗證演示密碼,歡迎下載體驗。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
Aspose.Slides for .NET是一個獨特的演示處理API,它允許應用程序讀取、寫入、修改和轉換PowerPoint演示文稿。作為一個獨立的API,它提供了管理PowerPoint關鍵功能的功能,如管理文本、形狀、表格和動畫、向幻燈片添加音頻和視頻、預覽幻燈片等,而不需要Microsoft PowerPoint。
Aspose.Slides for .NET迎來2020年11月更新v20.11,允許測試演示密碼以打開,持Aspose.Slides中的地圖類型圖表,支持驗證演示密碼。(點擊下方按鈕即可下載)
(安裝包僅提供部分功能,并設置限制,如需試用完整功能請)
key | 概述 | 類別 |
---|---|---|
SLIDESNET-42195 | 通過Aspose.Slides保存文件損壞 | 調研中 |
SLIDESNET-42128 | 支持使用Aspose.Slides緩存PPTX | 調研中 |
SLIDESNET-39938 | 產生結果中的問題 | 調研中 |
SLIDESNET-42201 | 能夠測試演示密碼以打開 | 新功能 |
SLIDESNET-42020 | 支持Aspose.Slides中的地圖類型圖表 | 新功能 |
SLIDESNET-38917 | 能夠測試演示密碼進行修改 | 新功能 |
SLIDESNET-36008 | 支持驗證演示密碼 | 新功能 |
更多更新修復請參考:【Aspose.Slides for .NET v20.11更新說明】
添加了對部分地圖圖表支持
增加了對地圖圖表的部分支持。這意味著可以創建、編輯和保存圖表。渲染選項是有限的,因為Microsoft Office使用Bing數據提供者來生成圖表圖像。因此,在Aspose.Slides中進行的任何與地圖圖表相關的更改都不會影響渲染結果。如果圖表是從輸入文件中加載的,則將使用PPTX包中的緩存圖像進行渲染。
添加了以下枚舉值:
添加了以下方法:
添加了以下特性:
以下示例顯示了如何從頭開始創建地圖:
using (Presentation presentation = new Presentation()) { //create empty chart IChart chart = presentation.Slides[0].Shapes.AddChart(ChartType.Map, 50, 50, 500, 400, false); IChartDataWorkbook wb = chart.ChartData.ChartDataWorkbook; //Add series and few data points IChartSeries series = chart.ChartData.Series.Add(ChartType.Map); series.DataPoints.AddDataPointForMapSeries(wb.GetCell(0, "B2", 5)); series.DataPoints.AddDataPointForMapSeries(wb.GetCell(0, "B3", 1)); series.DataPoints.AddDataPointForMapSeries(wb.GetCell(0, "B4", 10)); //add categories chart.ChartData.Categories.Add(wb.GetCell(0, "A2", "United States")); chart.ChartData.Categories.Add(wb.GetCell(0, "A3", "Mexico")); chart.ChartData.Categories.Add(wb.GetCell(0, "A4", "Brazil")); //change data point value IChartDataPoint dataPoint = series.DataPoints[1]; dataPoint.ColorValue.AsCell.Value = "15"; //set data point appearance dataPoint.Format.Fill.FillType = FillType.Solid; dataPoint.Format.Fill.SolidFillColor.Color = Color.Green; presentation.Save("output.pptx", SaveFormat.Pptx); }
當首次在PP中打開演示文稿時,由于我們不提供緩存的圖像,因此可能需要花費幾秒鐘的時間從Bing服務上載圖表的圖像。
檢查密碼以通過IPresentationInfo接口打開
CheckPassword 方法已添加到IPresentationInfo 接口和PresentationInfo類。此方法允許檢查演示文稿是否受打開密碼保護。方法聲明如下:
/// <summary> /// Checks whether a password is correct for a presentation protected with open password. /// </summary> /// <param name="password">The password to check.</param> /// <returns> /// True if the presentation is protected with open password and the password is correct and false otherwise. /// </returns> /// <remarks> /// When the password is null or empty, this method returns false. /// </remarks> bool CheckPassword(string password);
下面的示例演示如何檢查密碼以打開演示文稿:
IPresentationInfo info = PresentationFactory.Instance.GetPresentationInfo("pres.pptx"); bool isPasswordCorrect = info.CheckPassword("my_password");
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn