Working with Presentation Content

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

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


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 import ShapeType
from aspose.slides_foss.export import SaveFormat

with slides.Presentation() as prs:
    slide = prs.slides[0]
    shape = slide.shapes.add_auto_shape(ShapeType.RECTANGLE, 50, 50, 300, 100)
    shape.add_text_frame("Aspose.Slides FOSS")
    prs.save("content.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