Aspose.Slides for Android via Java 23.2 Release Notes

KeySummaryCategory
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();
    format.setFontHeight(24f);
    format.setFontItalic(NullableBool.True);
    format.getFillFormat().setFillType(FillType.Solid);
    format.getFillFormat().getSolidFillColor().setColor(Color.RED);

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