Working with Slideshow -- Aspose.Slides FOSS for Python

Aspose.Slides FOSS for Python provides classes for working with working with slideshow.


Overview

The key classes involved are:

  • ISlideShowTransition
  • Slide

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
from aspose.slides_foss.slideshow import TransitionType, TransitionSpeed

with slides.Presentation() as prs:
    transition = prs.slides[0].slide_show_transition
    transition.type = TransitionType.FADE
    transition.speed = TransitionSpeed.MEDIUM
    transition.advance_after = True
    transition.advance_after_time = 3000
    prs.save("slideshow.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
ISlideShowTransitionSee reference docs
SlideSee reference docs

For full details, see the API Reference.

See Also

 English