Convert Presentation Slides to Image using Apache POI and Aspose.Slides
Contents
[
Hide
]
Microsoft PowerPoint - Convert Presentation Slides to Image
Following are the steps involved for saving presentation slides as images.
- Open the presentation you want its slides to be saved as images.
- In the File menu, click Save As Pictures….
- Select the file format and provide desired name.
- Folder with the provided name will be created having separate image file(s) for each slide.
Aspose.Slides - Convert Presentation Slides to Image
The save method exposed by Presentation class can be called by developers to convert the whole presentation into TIFF document. Further, TiffOptions class exposes imageSize property enabling the developer to define the size of the image if required.
Convert Presentation Slides to Tiff Image using Aspose.Slides
//Instantiate a PresentationEx object that represents a PPTX file
Presentation pres = new Presentation("presentation.pptx");
//Instantiate the TiffOptions class
TiffOptions opts = new TiffOptions();
//Set Image Size
opts.setImageSize(new Dimension(500, 400));
//Save the presentation to TIFF with specified image size
pres.save("Aspose_PPT-TIFF.tiff", SaveFormat.Tiff, opts);
Apache POI SL - Convert Presentation Slides to Image
Apache POI SL provides PPTX2PNG, an application that converts each slide of a .pptx slideshow into a PNG image.
PPTX2PNG converting slides to images
// Convert the slides to PNG files
PPTX2PNG.main(new String[]{"presentation.pptx"});
Download Running Code
Download Sample Code
For more details, visit Converting Presentation to TIFF.