Skip to main content

A 100% standalone Power Point Python API for Processing Power Point Files

Project description

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

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

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-10.8.1-py3-none-win_amd64.whl (25.3 MB view details)

Uploaded Python 3Windows x86-64

spire_presentation-10.8.1-py3-none-manylinux_2_31_x86_64.whl (37.5 MB view details)

Uploaded Python 3manylinux: glibc 2.31+ x86-64

spire_presentation-10.8.1-py3-none-macosx_10_7_universal.whl (49.1 MB view details)

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

File details

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

File metadata

File hashes

Hashes for spire_presentation-10.8.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 783dd13a44d75b266081ea64e93a5b1ce8645681deb4aa3228af3589f6857704
MD5 3c18c6a7402d69d0121644166d425cee
BLAKE2b-256 d950992fc4b99dc3477759ea16d5e3186e5b4e4aefc4cbb66be40c2bbfd95836

See more details on using hashes here.

File details

Details for the file spire_presentation-10.8.1-py3-none-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for spire_presentation-10.8.1-py3-none-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f157e0bdb8294c67ce25b5c6e10f24f9d3a50ba863887aa2e7715f390d8b5053
MD5 185217f4b765dbbd6562a8389934f24f
BLAKE2b-256 7ef842bac27b453b3a426930727d8f35cb129e26906e3c54d19928c2861a2688

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spire_presentation-10.8.1-py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 973a96af29fdfae30d04f00e5ffd0e72fb90e3853f98a4b0f577841967da91e2
MD5 25f154b49ddfe9f89f9a31a1ac0b2a20
BLAKE2b-256 94ff3bd44b34bca457261171e89b2be48e7d1fd646d4c05de258a4288d7dfa18

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spire_presentation-10.8.1-py3-none-macosx_10_7_universal.whl
Algorithm Hash digest
SHA256 859464ce79c52054d272e931b0038f784d999e38784fc4bc247cac6ba6c42270
MD5 2d45882c8330779ea68e069ff7a4a463
BLAKE2b-256 c5d29859cea2037f9d97733345a3a0b0c5cea5d2589d9ddbe1bcade01fb84874

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page