原創(chuàng)|產(chǎn)品更新|編輯:李顯亮|2021-03-23 09:35:24.713|閱讀 244 次
概述:Spire.Office for Java v4.3.0現(xiàn)已正式發(fā)布。本次更新帶來了一些新的功能,比如Spire.Presentation for Java 優(yōu)化了轉(zhuǎn)換PPT到PDF的時間,新增了添加自定義路徑動畫的功能,還支持了添加 、檢測和移除數(shù)字簽名的功能。同時,該版本還修復(fù)了大量的問題。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
你在尋找支持在Java中用編程方法處理各類格式文檔的API嗎?好巧,Java版企業(yè)級文檔管理組合套包Spire.Office 2021全新上線!Word、Excel、PPT、PDF、條形碼等格式一網(wǎng)打盡。
目前,Spire.Office for Java v4.3現(xiàn)已正式發(fā)布。本次更新帶來了一些新的功能,比如Spire.Presentation for Java 優(yōu)化了轉(zhuǎn)換PPT到PDF的時間,新增了添加自定義路徑動畫的功能,還支持了添加 、檢測和移除數(shù)字簽名的功能。同時,該版本還修復(fù)了大量的問題。點擊下方按鈕即可下載試用↓↓↓
免費下載Spire.Office for Java v4.3.0
新功能及問題修復(fù)詳情,請參閱如下內(nèi)容。
問題修復(fù)
優(yōu)化
新功能
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(); }
Bug修復(fù)
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請郵件反饋至chenjj@fc6vip.cn