Aspose.Slides for Python via .NET

Install Aspose.Slides for Python via .NET

pip install aspose.slides

The package ships the .NET runtime it needs, so there is nothing else to install and Microsoft PowerPoint is not required. Python 3.7 or later on Windows, Linux or macOS.

Create a PowerPoint Presentation in Python

This example creates a presentation, adds a shape with text to the first slide, and saves the result as both PPTX and PDF.

import aspose.slides as slides

with slides.Presentation() as presentation:
    slide = presentation.slides[0]
    shape = slide.shapes.add_auto_shape(slides.ShapeType.RECTANGLE, 50, 150, 600, 100)
    shape.text_frame.text = "Created with Aspose.Slides for Python via .NET"

    presentation.save("presentation.pptx", slides.export.SaveFormat.PPTX)
    presentation.save("presentation.pdf", slides.export.SaveFormat.PDF)

Running it writes presentation.pptx (about 34 KB) and presentation.pdf (about 36 KB) to the working directory.

Without a licence the library runs in evaluation mode, which adds a watermark and limits the number of slides. See Licensing to apply one.

Aspose.Slides for Python via .NET Resources

Explore these helpful resources::

FAQ

What is Aspose.Slides for Python via .NET?

Aspose.Slides for Python via .NET is a powerful Python library that allows you to create, edit, and convert PowerPoint presentations (PPT, PPTX, ODP) programmatically without Microsoft PowerPoint installed.

What presentation features does Aspose.Slides support?

The library supports managing text, shapes, tables, charts, animations, master slides, audio, video, and more. It also enables slide preview, rendering, printing, and exporting to formats like PDF, SVG, HTML, and images.

Can I convert presentations to other formats using Aspose.Slides?

Yes. Aspose.Slides enables conversion of PowerPoint files to PDF, SVG, HTML, JPG, PNG, TIFF, and other formats with high fidelity and performance.

Is Microsoft PowerPoint required to use Aspose.Slides?

No. Aspose.Slides is a standalone API and does not require Microsoft Office or any third-party software.

What platforms does Aspose.Slides for Python via .NET support?

It is cross-platform and works on Windows, Linux, and macOS environments.

How do I get started with Aspose.Slides for Python?

You can install it via PyPi and explore the Developer Guide to get started with examples, API references, and tutorials.