PowerPoint Slides Manipulation using Cloud APIs

Why PowerPoint Presentations?

PowerPoint templates preview

PowerPoint presentations are one of the popular and most widely used formats of data and information presentations during board and general meetings. Also, in the eLearning world, PowerPoint is among the popular knowledge-sharing formats. The presentation format has changed the way people present ideas and information to an audience. The Presentation files store collection of records to accommodate presentation data such as slides, shapes, text, animations, video, audio, and embedded objects.

As per your requirements, you use the Presentation software such as Microsoft PowerPoint, Apache OpenOffice Impress, Apple Keynote, etc, to create fliers, envelopes, business cards, invitations, certificates, forms, calendars, and even books. The common Presentation file extensions and their associated file formats include PPTXPPT, and ODP.

Features offered by Aspose.Slides Cloud

In order to compile a compelling presentation, you must first understand all that your presentation processing API has to offer. Aspose.Slides Cloud enables you to create well-designed, impactful slides within Presentations. The concept of slides is quite phenomenal where related information is grouped on a particular slide. You may add beautiful timelines and charts to your presentation using API.

At slide level, the API offers the features to Add, Remove, Copy, Move, get slides count, dimensions, and information regarding other objects in a slide. Please consider visiting the following link for information regarding features offered by Aspose.Slides Cloud API.

Add, Move, Delete, Copy Slides

While manipulating PowerPoint presentations, one of the most popular operations performed by users includes the addition of new empty slides, the movement of slide to a new location in presentation, Copy existing slide to a new location or delete an existing slide from the presentations file. When dealing with files, we get an option to perform operations on files stored on a local file system or a file stored in cloud storage.

In the following examples, we will be dealing with the attached sample presentation which initially contains one single master slide.

Preview of input Presentation file
Image 1:- Preview of the source Presentation file

Add an empty slide

As shown in the code snippet below, a single method PostSlidesAddRequest(..) is used to add a new slide to the presentation file. The first parameters accept the Presentation file name, the second argument takes the index where the slide needs to be added. In case the index parameter is not specified, then the slide is added at the end of already present slides in the presentation. The third one is password information for the file, and so on. All the parameters except the input file name are optional.

Preview after adding new blank slide
Image 2:- Preview after adding a blank slide on 2nd index

Move Slide

The API provides a simple method to rearrange the position of the slide within the presentation file. You simply need to provide the location/name of an input file, index of the slide which you need to move, and a third argument pointing to the index where you need to move the file. As per the code snippet below, the slide from the 2nd index is moved to 1st.

Preview after reordering 2nd slide to new position
Image 2:- Preview after reOrdering 2nd slide to 1st index

Delete Slide

Among the CRUD operations, Delete also possesses its importance because we sometimes stumble upon a requirement to remove unnecessary or outdated information. So in order to cater to this requirement. the API is fully capable of handling such requests. You get the option to delete all slides in a presentation using DeleteSlidesCleanSlidesList(..) method or remove a slide at a specific index using DeleteSlideByIndex(..) method which accepts two arguments i.e. input presentation file name and index of the slide to be removed.

Preview after deleting slide at index 2
Image 4:- Preview after removing slide on the 2nd index.