Aspose.Slides for .Net更新至v20.11,允许测试演示密码以打开,持Aspose.Slides中的地图类型图表,支持验证演示密码,欢迎下载体验。
(安装包仅提供部分功能,并设置限制,如需试用完整功能请申请免费授权)
17一齐周年庆!整合所有格式的Aspose.Total永久授权正在火热促销中,乐享85折起!联系客服立马1分钟了解全部咨询!
具体更新内容
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更新说明】
新功能演示
添加了对部分地图图表支持
添加了以下枚举值:
- CombinableSeriesTypesGroup .MapChart
- ChartType .Map
添加了以下方法:
- IChartDataPointCollection.AddDataPointForMapSeries(Aspose.Slides.Charts.IChartDataCell)
添加了以下特性:
- IChartDataPoint.ColorValue
以下示例显示了如何从头开始创建地图:
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");
还想要更多吗可以点击阅读【2020 · Aspose最新资源整合】,查找需要的教程资源。如果您有任何疑问或需求,请随时加入Aspose技术交流群(),我们很高兴为您提供查询和咨询。
标签:
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!