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

Uploaded Python 3Windows x86-64

spire_presentation-11.3.0-py3-none-manylinux_2_31_x86_64.whl (25.1 MB view details)

Uploaded Python 3manylinux: glibc 2.31+ x86-64

spire_presentation-11.3.0-py3-none-macosx_11_0_arm64.whl (27.6 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

spire_presentation-11.3.0-py3-none-macosx_10_7_universal.whl (49.6 MB view details)

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

File details

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

File metadata

File hashes

Hashes for spire_presentation-11.3.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 2c192d1762257fb8b71189e4364a11d60b48929836a11c53fc18ae2b06d1ff84
MD5 ec60a433ef34ee2fde1a841c51b3efb8
BLAKE2b-256 64186aebacda3ae052607d0f3f8d0a43758838aa17e7401602ab3508453d715b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spire_presentation-11.3.0-py3-none-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 80dc450767ba1232291088e7b668fa9909ed68a0bce6b35b4d694d3f31bde16f
MD5 078c950c313ac1688eac2222498117f4
BLAKE2b-256 fd468ca811edf5ea0b4ab0806753e38d81863598a1850cedd9ef1b97507de9f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spire_presentation-11.3.0-py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c6fc1117400eb3c8fc74801f916abf607030a994df0363f40b44f70bf48f388d
MD5 34342ced3376f621e9812eeb8dcc9e2c
BLAKE2b-256 be716a29096747e2c2037129cd6ce2487d3b98ae3dddfb137cabc9831794f169

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spire_presentation-11.3.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 600b8977c02681173e72dabe32fd74faf9bbe1071c544f9412512b5462d5703e
MD5 64e6f82136fcedf8acfe302f98250cfa
BLAKE2b-256 172b951041cada4ee669ef4a05b4359dffbfe47cc15b68e3cc8c497b4375c655

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spire_presentation-11.3.0-py3-none-macosx_10_7_universal.whl
Algorithm Hash digest
SHA256 eaaa4e85fc682f39618f7fb00c0f9644991b9defe1cf805edd71bc2332e8458b
MD5 7b29dd695b89f0ee8b022fdc01220b05
BLAKE2b-256 2f5b0611d6bd0e869f2816a7bb3a32dd1ea1413b5490e98d321199ace80d6a56

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