Spire.Presentation for Java 9.10.2 现已正式发布,最新版本支持了 FindFirstTextAsRange 方法,用于查找第一个出现的文本。另外,一些已知问题也在此次更新中被成功修复,例如加载 PPTX 文档程序抛出异常 NullPointerException 的问题。更多详情请阅读下面的内容。 新功能: 新增 FindFirstTextAsRange 方法用于查找第一个出现的文本。 Presentation ppt = new Presentation(); ppt.loadFromFile(inputFile); String text = "create, read"; PortionEx textRange=ppt.getSlides().get(0).FindFirstTextAsRange(text); textRange.getFill().setFillType(FillFormatType.SOLID); textRange.getFill().getSolidColor().setColor(Color.red); textRange.setFontHeight(28); textRange.setLatinFont(new TextFont("微软雅黑")); textRange.isBold(TriState.TRUE); textRange.isItalic(TriState.TRUE); textRange.setTextUnderlineType(TextUnderlineType.DOUBLE);…