Spire.Presentation for Java 4.3.2

Spire.Presentation for Java 4.3.2 supports adding customized path animation

We are happy to announce the release of Spire.Presentation for Java 4.3.2. This version optimizes the conversion time from PPT to PDF, supports adding customized path animation as well as supports adding, verifying and removing digital signature. At the same time, it also enhances the conversion from PPTX to Image. More details are listed below.

Here is a list of changes made in this release

Category ID Description
Optimization SPIREPPT-1429
SPIREPPT-1459
SPIREPPT-1481
Optimizes the conversion time from PPT to PDF.
New Feature SPIREPPT-1504 Supports adding customized path animation.
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();
New Feature - Supports adding/verifying/removing digital signature.
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 SPIREPPT-1393 Fixes the issue that the shadows were lost when converting slides to images.
Bug SPIREPPT-1468 Fixes the issue that the application threw "NullPointerException" when converting PPTX to images.
Click the link to download Spire.Presentation for Java 4.3.2: