Skip to main content

Free Python API for Processing PowerPoint Presentations

Foo

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

Efficient PowerPoint Presentation Manipulation

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.Free 9.12.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for Spire.Presentation.Free 9.12.0
File Interpreter ABI Platform
Spire.Presentation.Free-9.12.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
Spire.Presentation.Free-9.12.0-py3-none-manylinux1_x86_64.whl Python 3 none Linux glibc 2.5+ x86-64 Details
Spire.Presentation.Free-9.12.0-py3-none-macosx_10_7_universal.whl Python 3 none macOS 10.7+ universal (x86-64, i386, PPC64, PPC) Details

Total release size: 111.0 MB

Release files / Spire.Presentation.Free-9.12.0-py3-none-win_amd64.whl

Download URL Spire.Presentation.Free-9.12.0-py3-none-win_amd64.whl
Size 25.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
def73545bfbf027723b2e949ecd9c7801523a49b7b7ad0fae857da95538dff75
BLAKE2b-256 checksum
How to use checksums
f2320014e010a8da3a33bbd6fd0a72deec201fba428a7fce51a63a3cff419c58
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.Free-9.12.0-py3-none-manylinux1_x86_64.whl

Download URL Spire.Presentation.Free-9.12.0-py3-none-manylinux1_x86_64.whl
Size 37.2 MB
Tags Linux glibc 2.5+ x86-64 Python 3
SHA-256 checksum
How to use checksums
ffc1b99ced6dff82ff3e07b58d89342ee7cbf8869a7a6ca274ef178a28554031
BLAKE2b-256 checksum
How to use checksums
aaff57e9b789a622737b939b554cb145c0acfbde92971befbe92775450263694
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.Free-9.12.0-py3-none-macosx_10_7_universal.whl

Download URL Spire.Presentation.Free-9.12.0-py3-none-macosx_10_7_universal.whl
Size 48.7 MB
Tags Python 3 macOS 10.7+ universal (x86-64, i386, PPC64, PPC)
SHA-256 checksum
How to use checksums
3698a126f4863e492a97f14b1598b8e5ac482fa6156b596e27f7d52c3ad2a029
BLAKE2b-256 checksum
How to use checksums
7f484ec0d0a4c94563c210d24fd163aa2d86222cfa86a0d8ae00880f85985970
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release history Release notifications | RSS feed

This release

9.12.0 This release

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page