Compress PowerPoint Presentation Size using Java

Read this article to compress PowerPoint presentation size using Java. It covers setting up the IDE, provides a step-by-step set of instructions, and sample code to reduce PPTX size using Java. You will get an introduction to more APIs for further compressing the output PPT/PPTX.

Steps to Reduce PPTX Size using Java

  1. Set the IDE to use Aspose.Slides for Java to compress PPTX size
  2. Load the product license and load the target presentation to be compressed
  3. Prepare a list of normal slides, layout slides and master slides
  4. Iterate through all the slides, including shapes inside groups
  5. Reduce the resolution of each picture to the defined DPI value of 150 and delete its cropped parts
  6. Convert each non-JPEG image to JPEG with a reduced quality of 75%
  7. Keep the converted image only if it is smaller than the original image
  8. Delete unused master and layout slides
  9. Remove unused characters from the presentation’s embedded fonts and save the output file as PPT/PPTX

These steps summarize how to shrink PowerPoint file size using Java. Load the source presentation, prepare a list of all slide types, reduce the resolution of each picture, and delete cropped parts. Finally, convert each non-JPEG image to a low-quality JPEG, and delete all unused master and layout slides before saving the presentation.

Code to Minimize PowerPoint File Size using Java

This code demonstrates how to compress PPT using Java. You can use preset resolutions levels, compress pictures fill, and delete the cropped parts of a picture fill without lowering the resolution. Also, raise the ZIP compression one save, skip the thumbnail refresh to keep the existing preview, and remove unneeded embedded fonts.

This article teaches how to compress a PowerPoint presentation. To add SmartArt graphics to a slide, refer to the article Add SmartArt Graphics in PowerPoint using Java.