Copy PowerPoint Slide with C# REST API

Follow this article to copy PowerPoint slide with C# REST API. You will learn how to duplicate slides in PowerPoint with C# REST Interface using the .NET-based Cloud SDK. It will share details to duplicate slides in the same presentation or copy the slide to another presentation.

Prerequisite

Steps to Copy Slide with C# Low Code API

  1. Create the SlidesApi object with a user client ID and secret for copying a slide
  2. Upload the source presentation file into the Cloud storage for slide duplication
  3. Copy a slide to the destination index by invoking the CopySlide method
  4. Display the URLs of all the slides in the response object if required
  5. Download the updated presentation after copying a slide and save on the disk

These steps summarize how to copy a PowerPoint slide with C# REST API. Upload the presentation to Cloud storage and call the CopySlide() method by setting the uploaded file name, the source slide index, and the destination index for the copied slide. Display the returned slide URLs and download the updated presentation if required.

Code to Duplicate PowerPoint Slide with C# RESTful Service

This code demonstrates how to copy slides from one PPT to another with C# Low Code API. You may call the other overloaded method CopySlide() by setting the uploaded file name, source slide index, destination slide index, and name of the destination presentation if it is different from the source presentation. Note that you need to upload the destination presentation also if you want to copy slides to a different presentation.

This article has taught us how to copy PowerPoint slide to another presentation with C# REST API. If you want to add an empty slide to a presentation, refer to the article on add a new slide in PowerPoint with C# REST API.