This article shows you how to add SmartArt graphics in PowerPoint using Java. It covers how to set up the IDE, provides step-by-step instructions, and includes sample code for working with SmartArt graphics in Java. It also offers suggestions for code customization to improve the output PPT/PPTX.
Steps for PowerPoint SmartArt graphics using Java
- Configure the IDE to use Aspose.Slides for Java to add SmartArt
- Create an empty presentation, insert a Basic Processes diagram using the addSmartArt() method, and remove the existing placeholders.
- Add the desired steps in the process using the addNode() method, add another slide, and add an organizational chart.
- Remove any existing placeholders from the organizational chart and add all desired nodes.
- Add a third slide with a Base Cycle diagram, fill its labels, and add more nodes.
- Applica uno schema di colori al diagramma, uno stile personalizzato e imposta lo sfondo se necessario.
- Save the presentation with SmartArt inside it.
Questi passaggi descrivono come lavorare con PowerPoint SmartArt usando Java. Start the process by creating a new presentation and accessing the target slide to add the desired SmartArt shape. Use the addSmartArt() method to add a new shape, the removeNode() method to remove any default nodes in a shape, addNode() to add a new node, and various properties of the ISmartArtNode class to configure the shape.
Code to add PowerPoint SmartShapes with Java
This code demonstrates how to create SmartArt graphics in PowerPoint using Java. It is possible to change the layout of the existing SmartArt diagram instead of removing the old one and adding a new one, set the reverse property to true to reverse the order of the nodes, and modify the geometry of an existing node shape. It is also possible to add an outline to node shapes, apply visual effects, and add 3D formatting.
This article taught us how to add SmartArt diagrams in PowerPoint. To remove the presenter notes from a slide, see the article Removing notes from PowerPoint using Java.