A 100% standalone Power Point Python API for Processing Power Point Files
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file Spire.Presentation-9.11.2-py3-none-win_amd64.whl
.
File metadata
- Download URL: Spire.Presentation-9.11.2-py3-none-win_amd64.whl
- Upload date:
- Size: 25.0 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 476b7e3b37935db610eba425d1ceb207f9e6e56bd61411c896e1206bea5b8d25 |
|
MD5 | 11818568b9e41b5f911652703d4194ee |
|
BLAKE2b-256 | 0ece83769dcfb9fe99602ddb2bebc3e8fc410f332d311266bbe0952c06b97121 |
File details
Details for the file Spire.Presentation-9.11.2-py3-none-manylinux1_x86_64.whl
.
File metadata
- Download URL: Spire.Presentation-9.11.2-py3-none-manylinux1_x86_64.whl
- Upload date:
- Size: 37.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c83c6f3aebeae0b95be04d9dcd8e910f607f0230d72007044085e94eaaf43e0f |
|
MD5 | 5572e71c1daf4110eab959d49628ef23 |
|
BLAKE2b-256 | e35e1983c870a1eb57676f0805d1a7178f00efec80d773d5ce3fc8aa4608a0d8 |
File details
Details for the file Spire.Presentation-9.11.2-py3-none-macosx_10_7_universal.whl
.
File metadata
- Download URL: Spire.Presentation-9.11.2-py3-none-macosx_10_7_universal.whl
- Upload date:
- Size: 48.7 MB
- Tags: Python 3, macOS 10.7+ universal
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ca5ca9e8c016fade3f3c05dfcda643deb748b9e3e1936e623351aa9b775108b |
|
MD5 | db47fec60469ad3c8c480937ecb98b52 |
|
BLAKE2b-256 | 5ce9b3da0990cc5af1c01c6ac5d811f2a695a193601490d41e5600799c5672b5 |