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

Spire.Presentation-9.11.1-py3-none-win_amd64.whl (24.5 MB view details)

Uploaded Python 3 Windows x86-64

Spire.Presentation-9.11.1-py3-none-macosx_10_7_universal.whl (45.2 MB view details)

Uploaded Python 3 macOS 10.7+ universal

File details

Details for the file Spire.Presentation-9.11.1-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for Spire.Presentation-9.11.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 8fe1b520bb3964beeecb0cf3b6b8dcf1866cf70e6e60199e426400c7c5b34389
MD5 3b80f4d1012ce8e45098f1db37d9669c
BLAKE2b-256 a4baf7ed04118ec9e9bbb29f54781ff2c2e2a86ad2c807372394a882b047b30f

See more details on using hashes here.

File details

Details for the file Spire.Presentation-9.11.1-py3-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for Spire.Presentation-9.11.1-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c9769324d369379d25254ec7d5083f571d2d893cac3d19e6395d400aa88777c1
MD5 7945ea1b28b7991bdcd777a1809e65ac
BLAKE2b-256 0c0d38140cd14880f216692827168518954bc738e170bd51a978399d8718cdee

See more details on using hashes here.

File details

Details for the file Spire.Presentation-9.11.1-py3-none-macosx_10_7_universal.whl.

File metadata

File hashes

Hashes for Spire.Presentation-9.11.1-py3-none-macosx_10_7_universal.whl
Algorithm Hash digest
SHA256 790a7c8165737c319838439bcd512d4bd83baeb468f2349693a1a3c9899dc046
MD5 c03bbf694945060e66822466053d06a9
BLAKE2b-256 5f3ddfdf31fb9712684c84e707a0eb40c50756685bed662f0f6b6802a6073e74

See more details on using hashes here.

Supported by

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