Working with Presentation Management

Working with Presentation Management -- Aspose.Slides FOSS for Python

Aspose.Slides FOSS for Python provides classes for working with working with presentation management.


Overview

The key classes involved are:

  • Presentation

Getting Started

Install Aspose.Slides FOSS for Python:

pip install aspose-slides-foss

Basic Usage

import aspose.slides_foss as slides
from aspose.slides_foss.export import SaveFormat

with slides.Presentation() as prs:
    # Add an additional blank slide at the end
    prs.slides.add_empty_slide(prs.layout_slides[0])

    print(f"Total slides: {len(prs.slides)}")
    prs.save("multi-slide.pptx", SaveFormat.PPTX)

Tips and Best Practices

  • Always dispose of document objects after use
  • Handle file I/O exceptions when reading or writing files
  • Check the API reference for the latest signatures

API Reference Summary

ClassDescription
PresentationSee reference docs

For full details, see the API Reference.

See Also

 English