| initialize_powerpoint | Initialize connection to PowerPoint.
Returns:
Status of initialization and platform information
|
| get_presentations | Get a list of all open PowerPoint presentations with their metadata. |
| open_presentation | Open a PowerPoint presentation from the specified path.
Args:
path: Full path to the PowerPoint file (.pptx, .ppt)
Returns:
Dictionary with presentation ID and metadata
|
| get_slides | Get a list of all slides in a presentation.
Args:
presentation_id: ID of the presentation
Returns:
List of slide metadata
|
| get_slide_text | Get all text content in a slide.
Args:
presentation_id: ID of the presentation
slide_id: ID of the slide (integer)
Returns:
Dictionary containing text content organized by shape
|
| update_text | Update the text content of a shape.
Args:
presentation_id: ID of the presentation
slide_id: ID of the slide (numeric string)
shape_id: ID of the shape (numeric string)
text: New text content
Returns:
Status of the operation
|
| save_presentation | Save a presentation to disk.
Args:
presentation_id: ID of the presentation
path: Optional path to save the file (if None, save to current location)
Returns:
Status of the operation
|
| close_presentation | Close a presentation.
Args:
presentation_id: ID of the presentation
save: Whether to save changes before closing
Returns:
Status of the operation
|
| create_presentation | Create a new PowerPoint presentation.
Returns:
Dictionary containing new presentation ID and metadata
|
| add_slide | Add a new slide to the presentation.
Args:
presentation_id: ID of the presentation
layout_type: Slide layout type (default is 1, title slide)
1: ppLayoutTitle (title slide)
2: ppLayoutText (slide with title and text)
3: ppLayoutTwoColumns (two-column slide)
7: ppLayoutBlank (blank slide)
etc...
Returns:
Information about the new slide
|
| add_text_box | Add a text box to a slide and set its text content.
Args:
presentation_id: ID of the presentation
slide_id: ID of the slide (numeric string)
text: Text content
left: Left edge position of the text box (points)
top: Top edge position of the text box (points)
width: Width of the text box (points)
height: Height of the text box (points)
Returns:
Operation status and ID of the new shape
|
| set_slide_title | Set the title text of a slide.
Args:
presentation_id: ID of the presentation
slide_id: ID of the slide (numeric string)
title: New title text
Returns:
Status of the operation
|
| get_platform_info | Get information about the current platform and available PowerPoint adapters.
Returns:
Platform and adapter information
|