Spire.Presentation 9.11.2

pip install Spire.Presentation Copy PIP instructions

Released: Nov 20, 2024

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

Verified details

Maintainers.

Avatar for E-iceblue from gravatar.com

Unverified details

Project links.

  • License: Free To Use But Restricted, Other/Proprietary License
  • Author: E-iceblue
  • Requires: Python >=3.7

Classifiers

  • Free To Use But Restricted
  • Other/Proprietary License
  • Microsoft :: Windows
  • POSIX :: Linux
  • Python :: 3.6

Project description

Independent powerpoint presentation processing api for python.

powerpoint presentation in python

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.

  • Convert PowerPoint presentations to PDF while preserving the original layout and formatting
  • Export presentation slides to images (PNG, JPEG, BMP, SVG, etc.)
  • Convert PowerPoint presentations to HTML files for web viewing
  • Convert presentations to more formats such as ODT, PPS, XPS, etc.

Efficient PowerPoint Presentation Manipulation

  • Extract text from slides
  • Export images from slides
  • Add text and image watermarks to presentations
  • Embed or export audio and video files in presentations
  • Encrypt or decrypt PowerPoint presentations
  • Work with SmartArt in presentations
  • Create tables in presentations
  • Change the slide size of presentations
  • Create charts in presentations
  • Add or remove slides in presentations

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, convert a powerpoint presentation to images, encrypt a powerpoint presentation, extract images from a powerpoint presentation, project details, release history release notifications | rss feed.

Nov 20, 2024

Nov 11, 2024

Mar 22, 2024

Jan 10, 2024

Sep 28, 2023

Aug 28, 2023

Aug 24, 2023

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages .

Source Distributions

Built distributions.

Uploaded Nov 20, 2024 Python 3 Windows x86-64

Uploaded Nov 20, 2024 Python 3

Uploaded Nov 20, 2024 Python 3 macOS 10.7+ universal

File details

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

File metadata

  • Download URL: Spire.Presentation-9.11.2-py3-none-win_amd64.whl
  • Upload date: Nov 20, 2024
  • Size: 25.0 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

See more details on using hashes here.

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

  • Download URL: Spire.Presentation-9.11.2-py3-none-manylinux1_x86_64.whl
  • Size: 37.2 MB
  • Tags: Python 3

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

  • Download URL: Spire.Presentation-9.11.2-py3-none-macosx_10_7_universal.whl
  • Size: 48.7 MB
  • Tags: Python 3, macOS 10.7+ universal
  • português (Brasil)

Supported by

powerpoint presentation in python

5 Best Ways to Create PowerPoint Files Using Python

💡 Problem Formulation: Automating the creation of PowerPoint presentations is a common task for those who need to generate reports or summaries regularly. For instance, a user may wish to create a presentation summarizing sales data from a CSV file or visualize a project’s progress in a structured format. The desired output is a fully formatted PowerPoint file (.pptx) with various elements like titles, texts, images, and charts, as specified by the input data or customization requirements.

Method 1: Using python-pptx

The python-pptx library provides a comprehensive set of features for creating PowerPoint files (.pptx) in Python. It allows for adding slides, text, images, charts, and more, with a high level of customization. Manipulate slides at a granular level by accessing placeholders, creating bulleted lists, and setting properties like font size or color programmatically.

Here’s an example:

The code snippet above creates a PowerPoint file named python-pptx-presentation.pptx with one slide that includes a title and a subtitle.

In this overview, we create a presentation object, add a new slide with a predefined layout, set text for the title and subtitle placeholders, and then save the presentation. This method gives users the ability to create detailed, professional presentations through code.

Method 2: Using Pandas with python-pptx

This method combines the data manipulation power of Pandas with the presentation capabilities of python-pptx to create PowerPoint files from DataFrame contents. It’s particularly useful for automating the inclusion of tabular data or creating charts based on the DataFrame’s data.

The output is a PowerPoint file named pandas-python-pptx.pptx containing a bar chart representing the quantity of fruits.

This snippet demonstrates using a Pandas DataFrame to generate chart data, which is then used to create a chart in a PowerPoint slide. It showcases the synergy between Pandas for data handling and python-pptx for presentation creation.

Method 3: Using ReportLab with python-pptx

Those seeking to include complex graphics or generate custom visuals can harness the graphic-drawing capabilities of ReportLab with python-pptx. This method leverages ReportLab to create an image, which can then be inserted into a PowerPoint slide.

The output would be a PowerPoint file named reportlab-pptx.pptx containing a slide with a custom bar chart image.

The code above creates a bar chart using ReportLab, saves the chart as an image, and then inserts the image into a PowerPoint slide. This approach is ideal if you need to include bespoke graphics that are not directly supported by python-pptx itself.

Method 4: Using Matplotlib with python-pptx

For those familiar with Matplotlib, this method involves creating a visual plot or chart with Matplotlib, saving it as an image, and then embedding the image into a PowerPoint slide using python-pptx.

The outcome is a PowerPoint file matplotlib-pptx.pptx , with a plot on a slide created by Matplotlib.

In this case, we graph a quadratic function using Matplotlib, save it as an image, and then add that image to a slide in our PowerPoint presentation. This method offers a blend of Matplotlib’s sophisticated plotting tools with the simplicity of python-pptx.

Bonus One-Liner Method 5: Using Officegen

The Officegen package allows for rapid PowerPoint creation with simpler syntax, although with less flexibility compared to python-pptx. It provides functions to add slides, titles, and bullet points.

The outcome is a PowerPoint file officegen-presentation.pptx with a single slide containing a large title.

This snippet uses Officegen to initiate a new presentation, adds a text title to a slide, and saves the presentation. While not as detailed as python-pptx, Officegen is quick for simple presentations.

Summary/Discussion

  • Method 1: python-pptx. Full-featured control over presentations. Can be verbose for simple tasks.
  • Method 2: Pandas with python-pptx. Ideal for data-driven presentations. Setup can be complex if unfamiliar with data libraries.
  • Method 3: ReportLab with python-pptx. Powerful combo for custom graphics. Requires separate handling of graphics and presentation stages.
  • Method 4: Matplotlib with python-pptx. Best for users comfortable with Matplotlib. Less direct than using python-pptx alone.
  • Bonus Method 5: Officegen. Quick and easy for simple presentations. Limited customization options.

IMAGES

  1. PPT

    powerpoint presentation in python

  2. Python_Seminar.ppt

    powerpoint presentation in python

  3. Automate PowerPoint Slides Creation with Python

    powerpoint presentation in python

  4. Python Seminar PPT

    powerpoint presentation in python

  5. PPT

    powerpoint presentation in python

  6. PPT

    powerpoint presentation in python