This article describes how to change the PowerPoint table design with Java REST API. You will learn to set the design of a presentation table with Java REST Interface using a Java-based Cloud SDK. It will provide details to select a particular cell in a table and set its properties.
Prerequisite
- Create an account API credentials
- Download Aspose.Slides Cloud SDK for Java to set table cell design
- Setup Java project with the above SDK for changing the formatting of a cell
Steps to Change Table Design for PowerPoint with Java-based API
- Create an instance of the SlidesApi class using the Client ID and secret for changing table design
- Upload the source presentation into the cloud storage for setting the cell design
- Create a TableCell by setting its text, fill format and solid fill
- Call the UpdateTableCell() method with the uploaded file name, target slide, table index, cell reference, and the new table cell
- Repeat the process for as many cells as required
- Download the updated presentation from the Cloud storage with the new table design
These steps explain how to customize the presentation tables with Java REST Interface. Upload the source presentation to the Cloud storage, create a new table cell, and call the UpdateTableCell() method by providing the details of the cell to be customized. Finally, call the DownloadFile() method to retrieve the modified presentation with the new table design.
Code to Set Presentation Table Design with Java REST Interface
This code has demonstrated the process of changing the design of a PowerPoint table with Java REST API. You can set various properties of a cell such as row span, column span, top/bottom/left/right margin, and border style. If you want to set the design of a complete row in a table, use the UpdateTableRow() method.
This article has taught us how to set the formatting of a table cell. To create a presentation from a design template, refer to the article on Create a Presentation using a Presentation Design Template with Java REST API.