spire.office for java 4.3.0已发布。本次更新带来了一些新的功能,比如spire.presentation for java 优化了转换ppt到pdf的时间,新增了添加自定义路径动画的功能,还支持了添加 、检测和移除数字签名的功能。同时,该版本还修复了大量的问题。详情请阅读以下内容。
获取spire.office for java 4.3.0请点击:https://www.e-iceblue.cn/downloads/spire-office-java.html
spire.presentation for java
优化:
- 优化了转换ppt到pdf的时间
新功能:
- 支持了添加自定义路径动画的功能
presentation ppt = new presentation();
//add shape
iautoshape shape = ppt.getslides().get(0).getshapes().appendshape(shapetype.rectangle,new rectangle(0, 0, 200, 200));
//add animation
animationeffect effect = ppt.getslides().get(0).gettimeline().getmainsequence().addeffect(shape, animationeffecttype.path_user);
commonbehaviorcollection common = effect.getcommonbehaviorcollection();
animationmotion motion = (animationmotion)common.get(0);
motion.setorigin(animationmotionorigin.layout);
motion.setpatheditmode(animationmotionpatheditmode.relative);
motionpath moinpath = new motionpath();
moinpath.addpathpoints(motioncommandpathtype.move_to,new point2d.float[]{new point2d.float(0,0)},motionpathpointstype.curve_auto,true);
moinpath.addpathpoints(motioncommandpathtype.line_to,new point2d.float[]{new point2d.float
(0.1f,0.1f)},motionpathpointstype.curve_auto,true);
moinpath.addpathpoints(motioncommandpathtype.line_to,new point2d.float[]{new point2d.float(-
0.1f,0.2f)},motionpathpointstype.curve_auto,true);
moinpath.addpathpoints(motioncommandpathtype.end,new point2d.float[]{},motionpathpointstype.curve_auto,true);
motion.setpath(moinpath);
ppt.savetofile(outputfile, fileformat.pptx_2010);
ppt.dispose();
presentation ppt =new presentation();
ppt.loadfromfile(input);
//adds digital signature
ppt.adddigitalsignature("c:/gary.pfx", "e-iceblue","gary", new date());
ppt.savetofile(result,fileformat.pptx_2013);
//checks if the document is signed
boolean digitalsigned = ppt2.isdigitallysigned();
if (ppt2.isdigitallysigned() == true)
{
//removes digital signature
ppt2.removealldigitalsignatures();
}
问题修复:
- 修复了转换幻灯片到图片时阴影效果丢失的问题
- 修复了转换pptx到图片时程序抛“nullpointerexception”异常的问题
spire.doc for java
问题修复:
- 修复了转换word到pdf内容被截断的问题
- 修复了转换word到html程序抛异常问题
- 修复了转换word到pdf,程序挂起的问题
- 修复了交叉引用,程序抛outofmemory异常
- 修复了加载文档程序抛“指定的参数超出有效值范围”的问题
- 修复了转换word到html, 图片路径不正确的问题
- 修复了加载文档程序抛“arrayindexoutofboundsexception”的问题
- 修复了转换word到pdf,内容不正确的问题
- 修复了转换word到html/pdf程序抛“arrayindexoutofboundsexception”的问题
- 修复了转换word到pdf,字体发生改变的问题
- 修复了加载word文档,程序抛“outofmemory”的问题
- 修复了移除分节符,保存文档程序抛“unrecognized operand value in the formula”的问题
- 修复了加载word文档,程序抛“nullpointerexception”的问题
- 修复了更新目录域,程序抛“arrayindexoutofboundsexception”的问题
- 修复了加载word文档,程序抛“width(0) and height(0) cannot be<=0”的问题
- 修复了加载word文档,程序抛“illegalargumentexception”的问题
- 修复了加载word文档,程序抛“字典中已经存在具有相同键值的元素”的问题
- 修复了转换word到pdf,复选框勾选丢失的问题
- 修复了加载word文档,程序抛“imageloadexception”的问题
- 修复了加载word文档,程序抛“error reading emf metafile”的问题
- 修复了转换word到pdf,多出方框的问题
- 修复了转换word到pdf,程序抛“classcastexception”的问题
- 修复了转换html到pdf,程序抛“arrayindexoutofboundsexception”的问题
- 修复了保存word文档,程序抛“值对于int32来说不是太大就是太小”的问题
- 修复了保存word到html,表格中的项目编号丢失的问题
- 修复了保存word到html,程序抛“no have this value 9”的问题
- 修复了在linux环境转换word到svg,结果文档目录不正确的问题
- 修复了移除shape背景色失败的问题
- 修复了转换word到pdf,分页不正确的问题
- 修复了保存word到图片,程序抛“nullpointerexception”的问题
- 修复了添加style_ref 域后,域值无法被正确获取的问题
- 修复了加载html,程序抛“索引小于0或大于或等于列表计数”的问题
- 修复了转换word到pdf,链接丢失的问题
- 修复了转换word到pdf,多出空白页的问题
- 修复了比较文档,程序抛“stackoverflowerror”的问题
- 修复了保存.doc到.docx,程序抛“classcastexception”的问题
- 修复了设置文档属性后,保存word到pdf内容不正确的问题
- 修复了转换word到图片,内容格式错误的问题
- 修复了加载word,程序抛“值对于int32来说不是太大就是太小”的问题
- 修复了添加水印耗时长的问题
- 修复了转换word到图片,复选框丢失的问题
- 修复了在繁体台湾系统上加载文档,程序抛 ”x-windows-950' is not a supported encoding”的问题
- 修复了转换word到pdf,程序抛“找不到所需的cmap编码记录”的问题
- 修复了转换word到pdf,页面朝向错误的问题
- 修复了转换word到pdf,符号不正确的问题
- 修复了保存html到word,程序抛“unknown char: c”的问题