Aspose.Slides for Java is a PowerPoint document 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.
An overview of API to render and process document elements
API can be consumed in any Java-based desktop, enterprise web application or in any Linux and Unix environment.
Presentation API supports all popular PowerPoint and more file formats.
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
Remove or apply the protection on shapes
Embed Excel charts as OLE objects in slides
Work with ActiveX components
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.
// 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);
API is capable of handling all slide elements including table, text box, rectangle, polyline, ellipse, auto-shape, picture frame, video frame, audio frame & OLE object frame. API also provides a well-designed set of classes that enables you to comprehensively manipulate each of these elements.
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.
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.
// 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"));
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.