A 100% standalone Power Point Python API for Processing Power Point Files
Project description
Free Python API for Processing PowerPoint Presentations
Product Page | Documentation | Examples | Forum | Temporary License | Customized Demo
Free Spire.Presentation for Python is a Community Edition of the Spire.Presentation for Python, which is a totally free PowerPoint API for commercial and personal use. With it, developers can create, edit, convert, and save presentations without installing Microsoft PowerPoint.
This free library supports a variety of presentation manipulation features, such as slide management, multimedia handling, text and image manipulation, watermarking, encryption, and more. Furthermore, Free Spire.Presentation for Python also allows converting PowerPoint presentations to PDFs, PowerPoint to HTML, and PowerPoint to images (PNG, JPG, BMP, SVG).
*Friendly Reminder: Free version is limited to 10 presentation slides. This limitation is enforced during reading or writing PPT, PPTX. When converting PowerPoint files to PDF, you can only get the first 3 pages of PDF file. *.
Core Features & Functionality
High-Quality PowerPoint File 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 PPS and PPT to PPTX format for compatibility
- Convert presentations to other formats such as ODT, 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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Spire.Presentation.Free-9.12.0-py3-none-win_amd64.whl.
File metadata
- Download URL: Spire.Presentation.Free-9.12.0-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 |
def73545bfbf027723b2e949ecd9c7801523a49b7b7ad0fae857da95538dff75
|
|
| MD5 |
250e0e429b802de4398c6db93d4ebff5
|
|
| BLAKE2b-256 |
f2320014e010a8da3a33bbd6fd0a72deec201fba428a7fce51a63a3cff419c58
|
File details
Details for the file Spire.Presentation.Free-9.12.0-py3-none-manylinux1_x86_64.whl.
File metadata
- Download URL: Spire.Presentation.Free-9.12.0-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 |
ffc1b99ced6dff82ff3e07b58d89342ee7cbf8869a7a6ca274ef178a28554031
|
|
| MD5 |
2f572691266c85b4f91b5eb878625d69
|
|
| BLAKE2b-256 |
aaff57e9b789a622737b939b554cb145c0acfbde92971befbe92775450263694
|
File details
Details for the file Spire.Presentation.Free-9.12.0-py3-none-macosx_10_7_universal.whl.
File metadata
- Download URL: Spire.Presentation.Free-9.12.0-py3-none-macosx_10_7_universal.whl
- Upload date:
- Size: 48.7 MB
- Tags: Python 3, macOS 10.7+ universal (x86-64, i386, PPC64, PPC)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3698a126f4863e492a97f14b1598b8e5ac482fa6156b596e27f7d52c3ad2a029
|
|
| MD5 |
4199f98a21ee89dc66e9b8eafdc78def
|
|
| BLAKE2b-256 |
7f484ec0d0a4c94563c210d24fd163aa2d86222cfa86a0d8ae00880f85985970
|