Spire.Presentation 5.11.2已发布。该版本新增了数字签名功能,支持为趋势线设置颜色及自定义名字以及设置转变的变形类型。此外,版本还修复了在加载PPT和转换PPT到PDF时出现的问题。详情请阅读以下内容。
新功能:
- 支持了数字签名功能。
//Add digital signature
X509Certificate2 x509 = new X509Certificate2(inputPfx, "e-iceblue");
ppt.AddDigitalSignature(x509, "111", DateTime.Now);
//Remove digital signature
if (ppt.IsDigitallySigned == true)
{
ppt.RemoveAllDigitalSignatures();
Presentation ppt = new Presentation();
ppt.LoadFromFile(inputFile);
IChart chart = ppt.Slides[0].Shapes[0] as IChart;
ITrendlines trendline = chart.Series[0].TrendLines[0] as ITrendlines;
trendline.displayEquation = false;
trendline.displayRSquaredValue = false;
trendline.Name = "trendlineName";
trendline.Line.FillType = FillFormatType.Solid;
trendline.Line.SolidFillColor.Color = Color.Red;
ppt.SaveToFile(outputFile, FileFormat.Pptx2010);
ppt.Dispose();
ppt.Slides[0].SlideShowTransition.Type = TransitionType.Morph;
问题修复:
- 修复了加载包含外部DTD的PPTX文档程序抛DocumentUnknownFormatException问题。
- 修复了转换PPT到PDF内容不一致的问题。
- 修复了加载PPT程序抛IndexOutOfRangeException的问题。
获取Spire.Presentation 5.11.2,请点击:
https://www.e-iceblue.cn/Downloads/Spire-Presentation-NET.html