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

Uploaded Python 3Windows x86-64

spire_presentation-10.12.0-py3-none-manylinux_2_31_x86_64.whl (25.2 MB view details)

Uploaded Python 3manylinux: glibc 2.31+ x86-64

spire_presentation-10.12.0-py3-none-macosx_10_7_universal.whl (49.7 MB view details)

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

File details

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

File metadata

File hashes

Hashes for spire_presentation-10.12.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 04dc3f61d0015a8d2b10e0ae498f1de8df59b975655fe082fb879a207e275fed
MD5 d8a25ac61fa7ca389ce1dc5cd748c38a
BLAKE2b-256 c0463800882dfd93bdaf0c73eeb53715a5d25bd9707588b23f07018a5a0c5627

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spire_presentation-10.12.0-py3-none-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 12b50e91a9dd86cdf5fe08356d2fdfee7ca471f49486268d37d6d851fa0e0408
MD5 c205a8ba0e0ef6705d6b4f078e8d6719
BLAKE2b-256 4bf98725d2e2c27cda82b66fb5bb7979d2b31a0d28524c474598c1af7bf4120c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spire_presentation-10.12.0-py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c84e53a96253a73fff12aa924cb2bcfc894cd09d4bc711d2f9348923e64958c5
MD5 57919f8bf5561a334d72fb60c4ff162b
BLAKE2b-256 074b0f37a35bef72998167dd7a69d3d799c9b49106055075ba517218eef29a46

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spire_presentation-10.12.0-py3-none-macosx_10_7_universal.whl
Algorithm Hash digest
SHA256 bcbe02ab5c59216291d163d36292ad921936f9fe4c8f0b4097ddb3c88bc942db
MD5 fdf71ea25d295c433b419b017cc82ab3
BLAKE2b-256 c5ec729b438be03a15de9256e0ae549f172095bd773cb77df8dd643d53ca01d5

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