
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
aspose-slides-java
Advanced tools
A powerful library for manipulating and converting PowerPoint (PPT, PPTX, ODT, OTP, POT, POTX, PPS, PPSX) files.

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.
Aspose.Slides for Python via Java provides these popular features:
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.
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.
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()
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 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
FAQs
A powerful library for manipulating and converting PowerPoint (PPT, PPTX, ODT, OTP, POT, POTX, PPS, PPSX) files.
We found that aspose-slides-java demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.