Add Comments to PowerPoint with Python REST API

Follow this article to add comments to PowerPoint with Python REST API. You will learn to automatically add PowerPoint comments with Python Low Code API using the Python-based Cloud SDK. It will share details to set various parameters of a comment before adding it to the slide.

Prerequisite

Steps to Comments on PowerPoint Presentation with Python-based API

  1. Create the SlidesApi object by setting the client ID and secret for adding comments
  2. Set the input presentation file name and the target slide index
  3. Define the slide comment and the relevant child comments collection
  4. Add the comments to the slide using the CreateComment method
  5. Fetch the comments count to confirm the addition of the comments
  6. Download the updated presentation file with new comments in it

These steps describe how to add comments in PowerPoint with Python RESTful Service. Set the input presentation file name and slide index, create the slide comment and sub-comments, and call the CreateComment() method to insert the comments by setting the input file name, target index, and comments. This call uploads the presentation, modifies it in the Cloud, and returns the collection of comments.

Code to Add PowerPoint Presentation Comments with Python REST API

This code has demonstrated how to add comments to PowerPoint presentation with Python RESTful Service. You can add multiple child comments under the main comment by adding a list of comments and setting it to the property ChildComments. You can customize the comments by setting other exposed properties using the SlideComment method.

This article has taught us to add comments to a slide. You can insert an image background to a presentation by following the article Use picture as background in PowerPoint with Python REST API.

 English