Java APIs to manipulate PowerPoint documents

Read, write and manipulate Microsoft PowerPoint documents and transform presentations to PDF, HTML and image formats from within any Java application.

  Download Free Trial
Aspose.Slides for Java

Aspose.Slides for Java

 
  

Aspose.Slides for Java is PowerPoint document manipulation and processing API to read, write, manipulate and convert PowerPoint files within any Java based application. API does not have any external dependencies so it can be used without requiring Microsoft PowerPoint.

Being a powerful and comprehensive API, all PowerPoint presentation elements such as slides, tables, text, MSO charts, shapes, images and SmartArt diagrams are accessible for manipulation. Moreover, Aspose.Slides for Java API supports exporting presentation slides to PDF, XPS, TIFF, HTML and PDF Notes.

 

  

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 on slides

 

Add text to shapes

 

Support working with PowerPoint tables

 

Handle text & shape formatting

 

Apply or remove protection on shapes

 

Render slides to images

 

Export presentations to fixed-layout formats

 

Export to plain TIFF or TIFF with Notes

 

Export slides to SVG

 

Add images to presentations

 

Embed Excel charts as OLE objects in slides

 

Support for MSO 2016 charts

 

Export presentation to HTML

 

Import & export HTML text to & from presentation slides

 

Support for ActiveX components

 

Support for SmartArt shapes

 

Protect presentations & converted PDF files

 

Support for VBA Macros

 

Print PowerPoint presentations

 

Use Aspose.Slides for Java classes in PHP

 

Extract text from PPT document

Reliably Export Presentations as PDF, TIFF or XPS

Aspose.Slides for Java has its own rendering engine, specially designed for rendering with highest of fidelity to the Microsoft PowerPoint. This feature allows you to export presentations to a number of standard formats such as PDF, TIFF and XPS with results identical to the original presentation. Moreover, in order to export a presentation, you only need to load the presentation file and call the save method along with the desired output format. It is that simple!

Render presentations - Java

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

Complete Control Over PowerPoint Slide Elements

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.

Detailed Formatting of Presentation Contents

It is possible to format text and shapes on slides in a presentation using Aspose.Slides for Java API. Text is managed through text frames associated with shapes. Hence text is formatted using paragraphs and portions associated with the text frames. You can also manipulate attributes of shape element like position, size, line, image, text and fill.

Create Thumbnails of Presentation Slides

Aspose.Slides for Java allows to create thumbnails of the presentation slides so that you may distribute slide images to those users who do not have the PowerPoint application installed on their machines or you may use images in your custom websites - possibilities are limitless.

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

Aspose.Slides for Java 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: