Independent PowerPoint Presentation Processing API for Python
Product Page | Documentation | Examples | Forum | Temporary License | Customized Demo
Spire.Presentation for Python 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 while preserving the original layout and formatting
- Export presentation slides to images (PNG, JPEG, BMP, SVG, etc.)
- Convert PowerPoint presentations to HTML files for web viewing
- Convert presentations to more formats such as ODT, PPS, XPS, etc.
Efficient PowerPoint Presentation Manipulation
- Extract text from slides
- Export images from slides
- Add text and image watermarks to presentations
- Embed or export audio and video files in presentations
- Encrypt or decrypt PowerPoint presentations
- Work with SmartArt in presentations
- Create tables in presentations
- Change the slide size of presentations
- Create charts in presentations
- Add or remove slides in presentations
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
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
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
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
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 | Documentation | Examples | Forum | Temporary License | Customized Demo
Metadata
Release files for spire-presentation 11.8.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| spire_presentation-11.8.1-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| spire_presentation-11.8.1-py3-none-manylinux_2_34_x86_64.whl | Python 3 | none | Linux glibc 2.34+ x86-64 | Details |
| spire_presentation-11.8.1-py3-none-manylinux2014_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details |
| spire_presentation-11.8.1-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details |
| spire_presentation-11.8.1-py3-none-macosx_10_7_universal.whl | Python 3 | none | macOS 10.7+ universal (x86-64, i386, PPC64, PPC) | Details |
Total release size: 152.8 MB
Release files / spire_presentation-11.8.1-py3-none-win_amd64.whl
| Download URL | spire_presentation-11.8.1-py3-none-win_amd64.whl |
|---|---|
| Size | 25.7 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
28ca3bf0b0148bfe4a00a9b184f3fcf7baae59e1d0c3b6fa2e5fdc9e6d5c1b51
|
|
BLAKE2b-256 checksum How to use checksums |
402bab3574d48f408a842b970f20082dbed2578d10b8ec01df3a77525273d90a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / spire_presentation-11.8.1-py3-none-manylinux_2_34_x86_64.whl
| Download URL | spire_presentation-11.8.1-py3-none-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 25.3 MB |
| Tags | Linux glibc 2.34+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
f6ad60605448abd6317583d997e65a44e17394d88dcbe537f6f749219900c8d3
|
|
BLAKE2b-256 checksum How to use checksums |
a14f3f2e3615320adf667896461be6b20e2d1aa1512c97bf3ba547ab12d58c4a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / spire_presentation-11.8.1-py3-none-manylinux2014_aarch64.whl
| Download URL | spire_presentation-11.8.1-py3-none-manylinux2014_aarch64.whl |
|---|---|
| Size | 24.0 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
5460623d9812e116a6d72b6465880feed488bf412d93efe21efe58fce1b016ce
|
|
BLAKE2b-256 checksum How to use checksums |
ddd3f79b4fb9e4c522d3466b182dfc76fed1c2c941ad9dd62fdc7a44536d471b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / spire_presentation-11.8.1-py3-none-macosx_11_0_arm64.whl
| Download URL | spire_presentation-11.8.1-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 27.8 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
04ae070cba015f71e72482dd3c16fb252946a7db4659872be88ce9cc3d6e8b09
|
|
BLAKE2b-256 checksum How to use checksums |
6310c3a7a5fb7b47f7bdbe96fcafc8c9d8a126fa465ab0a8b3a080ccba7c1054
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / spire_presentation-11.8.1-py3-none-macosx_10_7_universal.whl
| Download URL | spire_presentation-11.8.1-py3-none-macosx_10_7_universal.whl |
|---|---|
| Size | 50.0 MB |
| Tags | Python 3 macOS 10.7+ universal (x86-64, i386, PPC64, PPC) |
|
SHA-256 checksum How to use checksums |
601475c75887ebbec3b548ec8e9f3d7d12bbd0e836cfb2692a0e7e684f223935
|
|
BLAKE2b-256 checksum How to use checksums |
fe967dedc9431cfee1d733ffce9c5dc3412d5b86496a5f01c3fea00d0fad75de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|