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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3manylinux: glibc 2.34+ x86-64

spire_presentation-11.6.2-py3-none-macosx_11_0_arm64.whl (27.7 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

spire_presentation-11.6.2-py3-none-macosx_10_7_universal.whl (49.8 MB view details)

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

File details

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

File metadata

File hashes

Hashes for spire_presentation-11.6.2-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 67ce2d709b90fc75e68fd17944112752246cc547d313f6dc8a20560bc6fda121
MD5 d97a227f27aebe1204bbd04aaa0d5fec
BLAKE2b-256 b4f1e0ef1776c6d3155676649172d7d8c046ba29e492805822c7e7b184345543

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spire_presentation-11.6.2-py3-none-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 7b1e1136d22177c651a0d6438fec74290821961193223c719aef7a3e56f52edf
MD5 3d68daece6b7b105415c711ce993aded
BLAKE2b-256 8750b5d923a573ad850bac8d528d242fe3fe7da518ac4518b347d10a31763942

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spire_presentation-11.6.2-py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3c6cd5c1da9ef7b9fb4c95a38a3703edee87b4b5ceadf44c35e274667c63276d
MD5 e45bed937df669bba637282b0bca859a
BLAKE2b-256 1e124a60e2a8c4dfcb16efeffb10f2bf24fc3e710ccdea354f3515df29fce460

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spire_presentation-11.6.2-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 407a87d9fbbf99a77905de43968a9f6985b65a7d64845d1329eb5396cfb5ecc6
MD5 4a695a6fa1c9b14c3054b1bc7f23907c
BLAKE2b-256 85f02a2ed8fd077e2450fba577756a999e182691d9fca3d9b6d85d3ae3220125

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spire_presentation-11.6.2-py3-none-macosx_10_7_universal.whl
Algorithm Hash digest
SHA256 d03b0d5c8c650f817bc6ef51efa900a4b24f92df5fc56373a9f1d086dbf3db20
MD5 16f423d06a73bff77e16041f8e13cf7b
BLAKE2b-256 3e6f5c14c0947229ba5d86c1a2ffc5104bd0475771a8dff72b3d90dfcfece245

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