Skip to main content

A powerful library for manipulating and converting PowerPoint (PPT, PPTX, ODT, OTP, POT, POTX, PPS, PPSX) files.

Project description

Presentation Manipulation Python API

banner

Product Page | Docs | Demos | API Reference | Blog | Search | Free Support | Release Notes | Temporary License

Aspose.Slides for Python via Java is a powerful on-premise class library used for processing and working with presentations. With this API, developers and applications get to generate, modify, convert, render, print, and manipulate presentations without relying on Microsoft PowerPoint or other third-party applications and services.

Without having to install a PowerPoint program or any 3rd party component, you can use Aspose.Slides to build different types applications. For example, Aspose, using its own APIs, developed a free web application that allows people to convert their PDF documents to PowerPoint Presentation online.

Aspose.Slides for Python requires you to use python programming language. For .NET, Java, C++, PHP and JavaScript languages, we recommend you get Aspose.Slides for .NET, Aspose.Slides for Java, Aspose.Slides for C++, Aspose.Slides for PHP via Java and Aspose.Slides for Node.js via Java, respectively.

Slides API Features

Aspose.Slides for Python via Java provides these popular features:

  • Loading, opening, and viewing presentations
  • Editing presentations
  • Converting presentations to PDF, Word, JPG, HTML, GIF, SVG, and many other formats
  • Rendering and printing presentations
  • Encrypting and decrypting presentations; password-protecting presentations and removing passwords
  • Manipulating presentation entities, such as master slides, shapes, charts, picture frames, audio frames, video frames, OLE, VBA macros, animations, etc.

Platform Independence

Aspose.Slides for Python via Java is platform-independent API and can be used on any platform (Windows, Linux and MacOS) where Python, Java and jpype1 bridge are installed.

Get Started

Ready to try Aspose.Slides for Python via Java?

Please read detailed installation instructions - Installing Aspose.Slides for Python for Java

Fetch the package and install aspose-slides-java. Run this command: pip install aspose-slides-java

If you already have aspose-slides-java package installed and want to get the latest version,
you have to run pip install --upgrade aspose-slides-java instead.

Create a Presentation (PPTX) from scratch in Python

import jpype
import asposeslides

jpype.startJVM()

from asposeslides.api import Presentation, ShapeType, SaveFormat

# Instantiate a Presentation object
presentation = Presentation()

# Select first slide
slide = presentation.getSlides().get_Item(0)

# Add new Line shape to slide
slide.getShapes().addAutoShape(ShapeType.Line, 50, 150, 300, 0)

# Save the presentation as PPTX
presentation.save("newPresentation.pptx", SaveFormat.Pptx)

jpype.shutdownJVM()

Convert a Presentation to PDF

import jpype
import asposeslides

jpype.startJVM()

from asposeslides.api import Presentation, SaveFormat

# Instantiate a Presentation object that represents a PPTX file
presentation = Presentation("presentation.pptx")

# Save the presentation as PDF
presentation.save("outputPDF.pdf", SaveFormat.Pdf)

jpype.shutdownJVM()

Import PDF and Save it as a Presentation

import jpype
import asposeslides

jpype.startJVM()

from asposeslides.api import Presentation, SaveFormat

# Instantiate a Presentation object that represents a PPTX file
presentation = Presentation()

# Remove the first slide from a presentation
presentation.getSlides().removeAt(0)

# Import the contents of a PDF file into a presentation.
presentation.getSlides().addFromPdf("welcome-to-powerpoint.pdf")

# Save the presentation as PPTX
presentation.save("outputPresentation.pptx", SaveFormat.Pptx)

jpype.shutdownJVM()

Product Page | Docs | Demos | API Reference | Blog | Search | Free Support | Release Notes | Temporary License

Project details


Download files

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

Source Distribution

aspose_slides_java-25.11.0.tar.gz (28.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aspose_slides_java-25.11.0-py3-none-any.whl (27.9 MB view details)

Uploaded Python 3

File details

Details for the file aspose_slides_java-25.11.0.tar.gz.

File metadata

  • Download URL: aspose_slides_java-25.11.0.tar.gz
  • Upload date:
  • Size: 28.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.7

File hashes

Hashes for aspose_slides_java-25.11.0.tar.gz
Algorithm Hash digest
SHA256 791883e054f76742afccac12df4305d574fc2d18259d3edb75674a77e8e744c8
MD5 bd99671418486e76dab2ecb9af3a17e6
BLAKE2b-256 b0d78f6e6f98134eeafab80aa07c39b2bd2be9bdce719baf0ff99e3ebea29007

See more details on using hashes here.

File details

Details for the file aspose_slides_java-25.11.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aspose_slides_java-25.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7b3de4cd8f9923c7e47bb39ca17b66fbb6732e48a43a874bda061ffc09f2835
MD5 5587d67188e1a9cd1ae6b1fab1e64b64
BLAKE2b-256 9e0793248a971f7316fa3907547b4d5627211219e7e62e2c594e9bb8f07dd38c

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