Skip to main content

Independent PowerPoint Presentation Processing API for Python

Foo

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

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

spire_presentation-11.8.1-py3-none-win_amd64.whl (25.7 MB view details)

Uploaded Python 3Windows x86-64

spire_presentation-11.8.1-py3-none-manylinux_2_34_x86_64.whl (25.3 MB view details)

Uploaded Python 3manylinux: glibc 2.34+ x86-64

spire_presentation-11.8.1-py3-none-macosx_11_0_arm64.whl (27.8 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

spire_presentation-11.8.1-py3-none-macosx_10_7_universal.whl (50.0 MB view details)

Uploaded Python 3macOS 10.7+ universal (x86-64, i386, PPC64, PPC)

File details

Details for the file spire_presentation-11.8.1-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for spire_presentation-11.8.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 28ca3bf0b0148bfe4a00a9b184f3fcf7baae59e1d0c3b6fa2e5fdc9e6d5c1b51
MD5 ab9d68442f7423028e59212e29256996
BLAKE2b-256 402bab3574d48f408a842b970f20082dbed2578d10b8ec01df3a77525273d90a

See more details on using hashes here.

File details

Details for the file spire_presentation-11.8.1-py3-none-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for spire_presentation-11.8.1-py3-none-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 f6ad60605448abd6317583d997e65a44e17394d88dcbe537f6f749219900c8d3
MD5 3c47bd245dd01255a24bc3f5d413001a
BLAKE2b-256 a14f3f2e3615320adf667896461be6b20e2d1aa1512c97bf3ba547ab12d58c4a

See more details on using hashes here.

File details

Details for the file spire_presentation-11.8.1-py3-none-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for spire_presentation-11.8.1-py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5460623d9812e116a6d72b6465880feed488bf412d93efe21efe58fce1b016ce
MD5 f01f0600bd19e81e534ab675ad960a1c
BLAKE2b-256 ddd3f79b4fb9e4c522d3466b182dfc76fed1c2c941ad9dd62fdc7a44536d471b

See more details on using hashes here.

File details

Details for the file spire_presentation-11.8.1-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for spire_presentation-11.8.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 04ae070cba015f71e72482dd3c16fb252946a7db4659872be88ce9cc3d6e8b09
MD5 859201419b9e8a120d4b7d7279b0566f
BLAKE2b-256 6310c3a7a5fb7b47f7bdbe96fcafc8c9d8a126fa465ab0a8b3a080ccba7c1054

See more details on using hashes here.

File details

Details for the file spire_presentation-11.8.1-py3-none-macosx_10_7_universal.whl.

File metadata

File hashes

Hashes for spire_presentation-11.8.1-py3-none-macosx_10_7_universal.whl
Algorithm Hash digest
SHA256 601475c75887ebbec3b548ec8e9f3d7d12bbd0e836cfb2692a0e7e684f223935
MD5 db4dd4e73fea3afd8a2f965f704e38cd
BLAKE2b-256 fe967dedc9431cfee1d733ffce9c5dc3412d5b86496a5f01c3fea00d0fad75de

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

11.8.1 This release

5 files

11.6.2

5 files

11.3.0

5 files

11.2.0

5 files

11.1.0

4 files

10.12.0

4 files

10.11.1

4 files

10.9.0

4 files

10.8.1

4 files

10.7.1

4 files

10.6.4

4 files

10.1.0

3 files

9.12.1

3 files

9.11.2

3 files

9.11.1

3 files

9.3.0

2 files

9.1.0

2 files

8.9.0

2 files

8.8.3

2 files

8.8.2

2 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