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”的问题