Spire.Presentation for Java 4.5.3已发布。该版本新增方法支持通过流添加图片到PPT,优化了PPT转PDF的内存消耗过多的问题,同时还修复了插入的图片内容不正确的问题。详情请阅读以下内容。 新功能: 支持转换PPT到PDF时指定字体目录 Presentation ppt = new Presentation(); ppt.loadFromFile("source.pptx"); ppt.setCustomFontsFolder("Fonts\\"); ppt.saveToFile("result.pdf", FileFormat.PDF); 新增append(InputStream inputStream)方法支持通过流添加图片到PPT 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); 问题修复: 优化了PPT转PDF的内存消耗过多的问题…