Aspose.Slides for Android via Java 23.2 Release Notes

SLIDESANDROID-425Use Aspose.Slides for Java 23.2 featuresEnhancement
SLIDESANDROID-471ExceptionInInitializerError is thrown when converting PPTX to PDFBug
SLIDESANDROID-472Application crashes when converting presentation to PDFBug

Public API Changes

Find and replace text fragments with changes in formatting

Added support for finding and replacing text fragments with changes in formatting. A new method in the public API has been added for this purpose: SlideUtil.findAndReplaceText.

The example below searches for all portions of “[this block] " and replaces them with “my text” filled in red:

Presentation pres = new Presentation("pres.pptx");
try {
    PortionFormat format = new PortionFormat();

    SlideUtil.findAndReplaceText(pres, true, "[this block] ", "my text ", format);"replaced.pptx", SaveFormat.Pptx);
} finally {
    if (pres != null) pres.dispose();