Java API for PowerPoint File Formats

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

  Download Free Trial
Aspose.Slides for Java

Aspose.Slides for Java

 
  

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

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

 

  

Advanced Java PowerPoint API Features

 

 

Create or clone existing slides from templates

 

Save & open 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 the 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 a number of standard formats similar to the original one using its rendering engine. The rendering engine is specially designed for rendering with the 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 prest = new Presentation(dir + "template.pptx");
// Convert PPTX to PDF, XPS and TIFF
prest.save(dir + "output.pdf", SaveFormat.Pdf);
prest.save(dir + "output.xps", SaveFormat.Xps);
prest.save(dir + "output.tiff", SaveFormat.Tiff);

Slide Elements Processing

API can handle all slide elements including text box, table, rectangle, ellipse, polyline, auto-shape, picture frame, audio frame, video frame & OLE object frame. API also provides a 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 a lot of possibilities to use thumbnails such as using at custom websites, sharing with customers as a template and more possibilities. API allows creating thumbnails with just a few lines of code.

Create slide's thumbnail - Java

// load the file
Presentation prest = new Presentation(dir + "template.pptx");
// access the first slide from the collection
ISlide sld = prest.getSlides().get_Item(0);
// create a full scale image of the slide
BufferedImage image = sld.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: