Skip to main content

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

Project description

Free Python API for Processing PowerPoint Presentations

Foo

Product Page | Documentation | Examples | Forum | Temporary License | Customized Demo

Free Spire.Presentation for Python is a Community Edition of the Spire.Presentation for Python, which is a totally free PowerPoint API for commercial and personal use. With it, developers can create, edit, convert, and save presentations without installing Microsoft PowerPoint.

This free library supports a variety of presentation manipulation features, such as slide management, multimedia handling, text and image manipulation, watermarking, encryption, and more. Furthermore, Free Spire.Presentation for Python also allows converting PowerPoint presentations to PDFs, PowerPoint to HTML, and PowerPoint to images (PNG, JPG, BMP, SVG).

*Friendly Reminder: Free version is limited to 10 presentation slides. This limitation is enforced during reading or writing PPT, PPTX. When converting PowerPoint files to PDF, you can only get the first 3 pages of PDF file. *.

Core Features & Functionality

High-Quality PowerPoint File 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.Free-9.12.0-py3-none-win_amd64.whl (25.0 MB view details)

Uploaded Python 3Windows x86-64

Spire.Presentation.Free-9.12.0-py3-none-macosx_10_7_universal.whl (48.7 MB view details)

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

File details

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

File metadata

File hashes

Hashes for Spire.Presentation.Free-9.12.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 def73545bfbf027723b2e949ecd9c7801523a49b7b7ad0fae857da95538dff75
MD5 250e0e429b802de4398c6db93d4ebff5
BLAKE2b-256 f2320014e010a8da3a33bbd6fd0a72deec201fba428a7fce51a63a3cff419c58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Spire.Presentation.Free-9.12.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ffc1b99ced6dff82ff3e07b58d89342ee7cbf8869a7a6ca274ef178a28554031
MD5 2f572691266c85b4f91b5eb878625d69
BLAKE2b-256 aaff57e9b789a622737b939b554cb145c0acfbde92971befbe92775450263694

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Spire.Presentation.Free-9.12.0-py3-none-macosx_10_7_universal.whl
Algorithm Hash digest
SHA256 3698a126f4863e492a97f14b1598b8e5ac482fa6156b596e27f7d52c3ad2a029
MD5 4199f98a21ee89dc66e9b8eafdc78def
BLAKE2b-256 7f484ec0d0a4c94563c210d24fd163aa2d86222cfa86a0d8ae00880f85985970

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