Spire.Office for Java v4.3.0现已正式发布。本次更新带来了一些新的功能,比如Spire.Presentation for Java 优化了转换PPT到PDF的时间,新增了添加自定义路径动画的功能,还支持了添加 、检测和移除数字签名的功能。同时,该版本还修复了大量的问题。
你在寻找支持在Java中用编程方法处理各类格式文档的API吗巧,Java版企业级文档管理组合套包Spire.Office 2021全新上线!Word、Excel、PPT、PDF、条形码等格式一 打尽。
目前,
新功能及问题修复详情,请参阅如下内容。
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”的问题
Spire.Presentation for Java
优化
- 优化了转换PPT到PDF的时间
新功能
-
支持添加自定义的路径动画。
Presentation ppt = new Presentation();//Add shapeIAutoShape shape = ppt.getSlides().get(0).getShapes().appendShape(ShapeType.RECTANGLE,new Rectangle(0, 0, 200, 200));//Add animationAnimationEffect 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 signatureppt.addDigitalSignature("C:/gary.pfx", "e-iceblue","Gary", new Date());ppt.saveToFile(result,FileFormat.PPTX_2013);//Checks if the document is signedboolean digitalSigned = ppt2.isDigitallySigned();if (ppt2.isDigitallySigned() == true){//Removes digital signatureppt2.removeAllDigitalSignatures();}
Bug修复
- 修复了将幻灯片转换为图像时阴影丢失的问题。
- 修复了将PPTX转换为图像时应用程序引发“ NullPointerException”的问题。
是E-iceblue官方友好合作伙伴,如果您对spire.office感兴趣,可以联系在线客服了解具体授权价格和使用机制。
标签:
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!