Spire.Presentation 10.1.0
A 100% standalone Power Point Python API for Processing Power Point Files
Requires Python: >=3.7

# Independent PowerPoint Presentation Processing API for Python

[![Foo](https://i.imgur.com/dvNJk7D.png)](https://www.e-iceblue.com/Introduce/presentation-for-python.html)

[Product Page](https://www.e-iceblue.com/Introduce/presentation-for-python.html) | [Documentation](https://www.e-iceblue.com/Tutorials/Python/Spire.Presentation-for-Python/Program-Guide/Spire.Presentation-for-Python-Program-Guide-Content.html) | [Examples](https://github.com/eiceblue/Spire.Presentation-for-Python) | [Forum](https://www.e-iceblue.com/forum/spire-presentation-f14.html) | [Temporary License](https://www.e-iceblue.com/TemLicense.html) | [Customized Demo](https://www.e-iceblue.com/Misc/customized-demo.html)

[Spire.Presentation for Python](https://www.e-iceblue.com/Introduce/presentation-for-python.html) is a powerful API for processing PowerPoint presentations in Python applications. It enables developers to create, edit, convert, and save presentations without Microsoft PowerPoint. With features like slide management, text and image manipulation, chart creation, and watermarking, Spire.Presentation for Python offers a comprehensive toolkit for efficient presentation processing.

It supports popular presentation file formats like PPT, PPS, PPTX, and PPSX, and allows easy conversion between formats. Developers can export presentations to images, PDF, HTML, XPS, and SVG files. With its user-friendly interface and extensive functionality, Spire.Presentation for Python empowers developers to enhance PowerPoint presentation capabilities in their Python applications effortlessly.

## Core Features & Functionality

### High-Quality PowerPoint Presentation Conversion
- [Convert PowerPoint presentations to PDF](https://www.e-iceblue.com/Tutorials/Python/Spire.Presentation-for-Python/Program-Guide/Conversion/Python-Convert-PowerPoint-Presentation-to-PDF.html) while preserving the original layout and formatting
- [Export presentation slides to images](https://www.e-iceblue.com/Tutorials/Python/Spire.Presentation-for-Python/Program-Guide/Conversion/Python-Convert-PowerPoint-to-Images-PNG-JPG-BMP-SVG.html) (PNG, JPEG, BMP, SVG, etc.)
- [Convert PowerPoint presentations to HTML files](https://www.e-iceblue.com/Tutorials/Python/Spire.Presentation-for-Python/Program-Guide/Conversion/Python-Convert-PowerPoint-to-HTML.html) for web viewing
- Convert presentations to more formats such as ODT, PPS, XPS, etc.

###  Efficient PowerPoint Presentation Manipulation

- [Extract text from slides](https://www.e-iceblue.com/Tutorials/Python/Spire.Presentation-for-Python/Program-Guide/Paragraph-and-Text/Python-Extract-Text-from-PowerPoint-Presentations.html)
- [Export images from slides](https://www.e-iceblue.com/Tutorials/Python/Spire.Presentation-for-Python/Program-Guide/Image-and-Shapes/Python-Extract-Images-from-PowerPoint-Presentations.html)
- [Add text and image watermarks to presentations](https://www.e-iceblue.com/Tutorials/Python/Spire.Presentation-for-Python/Program-Guide/Watermark/Python-Add-Text-or-Image-Watermarks-to-PowerPoint.html)
- [Embed or export audio and video files in presentations](https://www.e-iceblue.com/Tutorials/Python/Spire.Presentation-for-Python/Program-Guide/Audio-and-Video/Python-Add-or-Extract-Audio-and-Video-from-PowerPoint-Documents.html)
- [Encrypt or decrypt PowerPoint presentations](https://www.e-iceblue.com/Tutorials/Python/Spire.Presentation-for-Python/Program-Guide/Security/Python-Protect-or-Unprotect-PowerPoint-Presentations.html)
- [Work with SmartArt in presentations](https://www.e-iceblue.com/Tutorials/Python/Spire.Presentation-for-Python/Program-Guide/SmartArt/Python-Create-Read-or-Delete-SmartArt-in-PowerPoint.html)
- [Create tables in presentations](https://www.e-iceblue.com/Tutorials/Python/Spire.Presentation-for-Python/Program-Guide/Table/Python-Create-or-Edit-Tables-in-PowerPoint-Presentations.html)
- [Change the slide size](https://www.e-iceblue.com/Tutorials/Python/Spire.Presentation-for-Python/Program-Guide/Document-Operation/Python-Change-Slide-Size-in-PowerPoint.html) of presentations
- [Create charts in presentations](https://www.e-iceblue.com/Tutorials/Python/Spire.Presentation-for-Python/Program-Guide/Chart/Python-Create-Column-Charts-in-PowerPoint.html)
- [Add or remove slides in presentations](https://www.e-iceblue.com/Tutorials/Python/Spire.Presentation-for-Python/Program-Guide/Document-Operation/Python-Add-or-Delete-Slides-in-PowerPoint-Presentations.html)

### Extensive Presentation Version Support

- PPT - PowerPoint Presentation 97-2003
- PPS - PowerPoint SlideShow 97-2003
- PPTX - PowerPoint Presentation 2007/2010/2013/2016/2019
- PPSX - PowerPoint SlideShow 2007, 2010

## Code Examples

### [Convert a PowerPoint presentation to PDF](https://www.e-iceblue.com/Tutorials/Python/Spire.Presentation-for-Python/Program-Guide/Conversion/Python-Convert-PowerPoint-Presentation-to-PDF.html)
```python
from spire.presentation import *
from spire.presentation.common import *

# Create an object of Presentation class
presentation = Presentation()

# Load a presentation file
presentation.LoadFromFile("Sample.pptx")

# Convert the presentation file to PDF and save it
presentation.SaveToFile("output/PresentationToPDF.pdf", FileFormat.PDF)
presentation.Dispose()
```

### [Convert a PowerPoint presentation to images](https://www.e-iceblue.com/Tutorials/Python/Spire.Presentation-for-Python/Program-Guide/Conversion/Python-Convert-PowerPoint-to-Images-PNG-JPG-BMP-SVG.html)
```python
from spire.presentation.common import *
from spire.presentation import *

# Create a Presentation object
presentation = Presentation()

# Load a PowerPoint presentation
presentation.LoadFromFile("Sample.pptx")

# Loop through the slides in the presentation
for i, slide in enumerate(presentation.Slides):
    # Specify the output file name
    fileName ="Output/ToImage_ + str(i) + ".png"
    # Save each slide as a PNG image
    image = slide.SaveAsImage()
    image.Save(fileName)
    image.Dispose()

presentation.Dispose()
```

### [Encrypt a PowerPoint presentation](https://www.e-iceblue.com/Tutorials/Python/Spire.Presentation-for-Python/Program-Guide/Security/Python-Protect-or-Unprotect-PowerPoint-Presentations.html)
```python
from spire.presentation import *

# Create a Presentation object
presentation = Presentation()
# Load a PowerPoint presentation
presentation.LoadFromFile("Sample.pptx")

# Encrypy the presentation with a password
presentation.Encrypt("your password")

# Save the resulting presentation
presentation.SaveToFile("Encrypted.pptx", FileFormat.Pptx2016)
presentation.Dispose()
```

### [Extract images from a PowerPoint presentation](https://www.e-iceblue.com/Tutorials/Python/Spire.Presentation-for-Python/Program-Guide/Image-and-Shapes/Python-Extract-Images-from-PowerPoint-Presentations.html)
```python
from spire.presentation.common import *
from spire.presentation import *

# Create a Presentation instance
ppt = Presentation()

# Load a PowerPoint document
ppt.LoadFromFile("sample.pptx")

# Iterate through all images in the document
for i, image in enumerate(ppt.Images):

    # Extract the images
    ImageName = "ExtractImage/Images_"+str(i)+".png"
    image.Image.Save(ImageName)

ppt.Dispose()
```

[Product Page](https://www.e-iceblue.com/Introduce/presentation-for-python.html) | [Documentation](https://www.e-iceblue.com/Tutorials/Python/Spire.Presentation-for-Python/Program-Guide/Spire.Presentation-for-Python-Program-Guide-Content.html) | [Examples](https://github.com/eiceblue/Spire.Presentation-for-Python) | [Forum](https://www.e-iceblue.com/forum/spire-presentation-f14.html) | [Temporary License](https://www.e-iceblue.com/TemLicense.html) | [Customized Demo](https://www.e-iceblue.com/Misc/customized-demo.html)