This article assists on how to highlight text in PowerPoint with Python REST API. You will learn to develop a presentation highlight tool with Python REST Interface using a Python-based Cloud SDK. Various options will be discussed to highlight different parts of the slides with a specific color.
Prerequisite
- Create an account API credentials
- Download Aspose.Slides Cloud SDK for Python to highlight text in shapes
- Setup Python project with the above SDK to work with presentation highlighter
Steps to Highlight in PowerPoint with Python Low Code API
- Setup the SlidesApi object with the Client ID and secret to highlight text
- Upload the source presentation to highlight the selected text
- Invoke the HighlightShapeText() method in the API by providing the target text information
- Download the updated presentation with the highlighted text
These steps explain how to develop a PPT highlighter with Python-based API. Create the SlidesApi object, upload the target presentation, and invoke the HighlightShapeText() method. Pass the uploaded file name, slide index, target shape index in the slide, text string to be highlighted, and color code in RGB format.
Code for PowerPoint Presentation Highlighter with Python RESTful Service
This code demonstrates how to create a PowerPoint highlighter pen with Python REST API and use it to highlight text in a specific shape. You may use other variants to highlight text using the HighlightShapeRegex() method, highlight text in the entire presentation using the HighlightPresentationRegex() method, and use HighlightPresentationText() to highlight specific text in the presentation.
This article has taught us the process to search and highlight text in a presentation. To add hyperlink in a presentation, refer to the article on Add hyperlink to PowerPoint with Python REST API.