We are pleased to announce the release of Spire.Presentation for Java 11.5.1. This version adds a new feature to compress images and also fixes an issue while converting PowerPoint to PDF. Details are listed below.
Here is a list of changes made in this release
| Category | ID | Description |
| New Feature | SPIREPPT-3082 | Added support for compressing images.
Presentation presentation = new Presentation();
presentation.loadFromFile(inputFile);
SlideCollection slides = presentation.getSlides();
for (int i = 0; i < slides.getCount(); i++) {
ISlide slide = slides.get(i);
ShapeCollection shapes = slide.getShapes();
for (int j = 0; j < shapes.getCount(); j++) {
IShape shape = shapes.get(j);
if (shape instanceof SlidePicture) {
SlidePicture slidepicture = (SlidePicture) shape;
// The smaller the value, the greater the compression
boolean result = slidepicture.getPictureFill().getCompressImage( true, 50f);
}
}
}
|
| Bug Fix | SPIREPPT-3093 | Fixed the issue where the background color was incorrect when converting PowerPoint to PDF. |
Click the link below to download Spire.Presentation for Java 11.5.1: