Installation
Contents
[
Hide
]
System Requirements
First, you have to check and confirm that machine’s specifications meet the system requirements.
Installing Aspose.Slides for Python via .NET
pip
is the easiest way to download and install Aspose.Slides for Python via .NET.
To install Aspose.Slides, run this command: pip install aspose.slides
Using Aspose.Slides for Python via .NET
Once you finish installing the module, you can use Aspose.Slides from your python code this way:
# Import Aspose.Slides for Python via .NET module
import aspose.slides as slides
# Instantiate a Presentation object that represents a presentation file
with slides.Presentation() as presentation:
slide = presentation.slides[0]
slide.shapes.add_auto_shape(slides.ShapeType.LINE, 50, 150, 300, 0)
presentation.save("NewPresentation.pptx", slides.export.SaveFormat.PPTX)