Spire.Presentation for Java 9.10.2 supports the FindFirstTextAsRange method

2024-10-23 08:56:38

We are happy to announce the release of Spire.Presentation for Java 9.10.2. The latest version supports the FindFirstTextAsRange method for finding the first occurrence of text. Moreover, some known bugs are fixed successfully in the update, such as the issue that the program threw the NullPointerException exception when loading PPTX documents. More details are listed below.

Here is a list of changes made in this release

Category ID Description
New feature SPIREPPT-2573 Supports the FindFirstTextAsRange method for finding the first occurrence of text.
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("Arial"));
textRange.isBold(TriState.TRUE);
textRange.isItalic(TriState.TRUE);
textRange.setTextUnderlineType(TextUnderlineType.DOUBLE);
textRange.setTextStrikethroughType(TextStrikethroughType.SINGLE);
ppt.saveToFile(outputFile, FileFormat.PPTX_2016);
ppt.dispose();
Bug SPIREPPT-2614 Fixes the issue that the program threw the NullPointerException exception when loading PPTX documents.
Bug SPIREPPT-2616
SPIREPPT-2617
Fixes the issue that incorrect content occurred when converting PPTX documents to images.
Click the link below to download Spire.Presentation for Java 9.10.2: