News & Releases
|
|

Spire.Presentation for Java 4.5.3 adds a new method to add images to PPT via stream
We are glad to announce the release of Spire.Presentation for Java 4.5.3.This version adds a new method to add images to PPT via stream, optimizes the memory consumption when converting PPT to PDF and fixes the issue that the inserted image was incorrect. More details are listed below.
Here is a list of changes made in this release
| Category | ID | Description |
| New feature | SPIREPPT-1545 | Supports specifying the font file directory when converting PPT to PDF.
Presentation ppt = new Presentation();
ppt.loadFromFile("source.pptx");
ppt.setCustomFontsFolder("Fonts\\");
ppt.saveToFile("result.pdf", FileFormat.PDF);
|
| New feature | SPIREPPT-1558 | Adds a new method "append(InputStream inputStream)" to add images to PPT via stream.
Presentation ppt = new Presentation(); ppt.loadFromFile(inputFile); FileInputStream fileInputStream=new FileInputStream(intputFile_Img); IImageData imageData=ppt.getImages().append(fileInputStream); SlidePicture slidePictrue=(SlidePicture) ppt.getSlides().get(0).getShapes().get(0); slidePictrue.getPictureFill().getPicture().setEmbedImage(imageData); ppt.saveToFile(outputFile, FileFormat.PPTX_2013); |
| Bug | SPIREPPT-1543 | Optimizes the memory consumption when converting PPT to PDF. |
| Bug | SPIREPPT-1557 | Fixes the issue that the inserted image was incorrect. |
Click the link to download Spire.Presentation for Java 4.5.3: