This article shows you how to add SmartArt graphics in PowerPoint using Java. It covers how to set up the IDE, gives step-by-step instructions, and includes sample code for working with SmartArt graphics in Java. It also offers code customization tips for enhancing the output PPT/PPTX.
Steps for PowerPoint Presentation SmartArt Graphics using Java
- Configure the IDE to use Aspose.Slides for Java to add SmartArt
- Create a blank presentation, insert a Basic Process diagram using the addSmartArt() method and remove existing placeholders in it
- Add desired steps in the process using the addNode() method, add another slide, and add an Organization chart to it
- Clear any existing placeholders from the Organization chart and add all the desired nodes to it
- Add a third slide with a Basic Cycle diagram, fill in its labels, and add more nodes to it
- Apply a color scheme to the diagram, a custom style, and set the background if required
- Save the presentation with SmartArt in it
These steps describe how to work with PowerPoint SmartArt using Java. Commence the process by creating a new presentation and accessing the target slide for adding the desired SmartArt shape to it. Utilize the addSmartArt() method for adding a new shape, the removeNode() method for removing any default nodes in a shape, addNode() for adding a new node, and various ISmartArtNode class properties to configure the shape.
Code to Add PowerPoint Smart Shapes using Java
This code demonstrates how to create SmartArt graphics in PowerPoint using Java. You can change the layout of the existing SmartArt diagram instead of removing the old one and adding a new one, set the reversal property to true to reverse the order of nodes, and change the geometry of an existing node shape. You can also add an outline to the node shapes, apply visual effects, and add 3D formatting.
This article has taught us adding SmartArt diagram in PowerPoint. To remove speaker notes from a slide, refer to the article Remove notes from PowerPoint using Java.