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