Skip to content

roywangaspose/Aspose.Slides-for-Python-via-.NET

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python PowerPoint API. Python PPTX, PPT

Aspose.Slides for Python via .NET is a powerful class library for processing and manipulating presentations. Using this product, applications or developers get to view or read, edit, print, and convert Microsoft PowerPoint presentations (PPT, PPTX) and presentations in other formats (ODP) without third-party applications or dependencies.

Python PowerPoint API Features

Aspose.Slides for Python allows you to

  • Create or generate presentations.
  • Load and view presentations.
  • Convert presentations to PDF, Word, images (JPG, PNG), and other supported formats.
  • Access, edit, and manipulate a slide's contents (texts, shapes, etc.).

To view a comprehensive list of features, see the Aspose.Slides for Python via .NET Features page.

Read & Modify Presentations

Microsoft PowerPoint: PPT, PPTX, PPS, POT, PPSX, PPTM, PPSM, POTX, POTM
OpenOffice: ODP, OTP

Save Presentations As

Fixed Layout: PDF, PDF/A, XPS Image: JPEG, PNG, BMP, TIFF, GIF, SVG Web: HTML

Supported Environments

Aspose.Slides for Python via .NET can be used on any 64-bit or 32-bit operating system where Python 3.5 or later is installed.

Microsoft Windows: Windows XP (x64, x86) and later; Windows 2003 Server (x64, x86) and later.

Linux: Ubuntu; OpenSUSE; CentOS; and others.

Get Started with Aspose.Slides for Python

pip provides the easiest path to downloading and installing Aspose.Slides for Python via .NET.

To install Aspose.Slides, run this command: pip install aspose.slides

Create a Presentation from Scratch

import aspose.slides as slides

# Instantiates a Presentation object that represents a presentation file
with slides.Presentation() as presentation:
    slide = presentation.slides[0]
    # Adds an autoshape with type set to line
    slide.shapes.add_auto_shape(slides.ShapeType.LINE, 50, 150, 300, 0)
    presentation.save("NewPresentation_out.pptx", slides.export.SaveFormat.PPTX)

Convert a Presentation to PDF

import aspose.slides as slides

# Instantiates a Presentation object that represents a presentation file
presentation = slides.Presentation("PowerPoint.pptx")

# Saves the presentation to PDF
presentation.save("PPTX-to-PDF.pdf", slides.export.SaveFormat.PDF)

Home | Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License

About

Aspose.Slides for Python via .NET examples

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%