Java API for PowerPoint File Formats

Create, manipulate or convert PowerPoint presentations to PDF, HTML and image formats.

  Download Free Trial
Aspose.Slides for Java

Aspose.Slides for Java


Aspose.Slides for Java is PowerPoint file manipulation class library. It allows the developers to read, write, manipulate and convert PowerPoint files from within thier own application. All PowerPoint presentation elements such as slides, tables, text, MSO charts, shapes, images and SmartArt diagrams are accessible for manipulation.

Aspose.Slides for Java API supports exporting presentation slides to PDF, PDF/A, XPS, HTML and image formats.



Advanced Java PowerPoint API Features



Create new slides or clone existing slides from templates


Save & open PowerPoint files to & from streams


Generate presentations from database


Create shapes and add text to shapes on slides


Work with PowerPoint tables


Handle text & shape formatting


Apply or remove protection on shapes


Embed Excel charts as OLE objects in slides


Work with ActiveX components

Export Presentations to Multiple Formats

Aspose.Slides for Java API renders presentations to number of standard formats similar to the original presentation using its rendering engine. Rendering engine is specially designed for rendering with highest of fidelity to the Microsoft PowerPoint. Converting presentations to any supported format is simple by just loading, setting the output format and calling the save method.

Render presentations - Java

// load the file to be rendered
Presentation presentation = new Presentation(dir + "template.pptx");
// save in different formats + "output.pdf", SaveFormat.Pdf); + "output.xps", SaveFormat.Xps); + "output.tiff", SaveFormat.Tiff);

PowerPoint Slide Elements Processing

Aspose.Slides for Java can handle all presentation slide elements including text box, table, rectangle, ellipse, polyline, auto-shape, picture frame, audio frame, video frame & OLE object frame. API provides well-designed set of classes that enables you to comprehensively manipulate each of these elements.

Manipulation of SmartArt Shapes

Aspose.Slides for Java API can easily create or access, manipulate and remove existing SmartArt shapes from a slide. API facilitates to dynamically explore the SmartArt's properties or to manage SmartArt nodes as well as manipulate layout, style & color of SmartArt shapes.

Slides Thumbnails Creation 

There are lot of possibilities to use thumbnails such as using at custom websites, sharing with customers as a template and more possibilities. API allows to create thumbnails of the slides with just few lines of code.

Create slide's thumbnail - Java

// load the presentation file
Presentation presentation = new Presentation(dir + "template.pptx");
// access the first slide from the collection
ISlide slide = presentation.getSlides().get_Item(0);
// create a full scale image of the slide
BufferedImage image = slide.getThumbnail(1f, 1f);
// save the image in JPEG format
ImageIO.write(image, "jpeg", new File(dir + "output.jpg"));

Microsoft Office Automation – Not Needed

API is built using managed code that does not need Microsoft Office or Microsoft PowerPoint to be installed on the machine to work with PowerPoint document formats. It is a perfect Microsoft PowerPoint automation alternative in terms of supported features, security, stability, scalability, speed and price.


Support and Learning Resources


Aspose.Slides offers individual PowerPoint APIs for other popular development environments as listed below: