Browse our Products
Aspose.Slides for Android via Java 23.2 Release Notes
This page contains release notes for Aspose.Slides for Android via Java 23.2
Key | Summary | Category |
---|---|---|
SLIDESANDROID-425 | Use Aspose.Slides for Java 23.2 features | Enhancement |
SLIDESANDROID-471 | ExceptionInInitializerError is thrown when converting PPTX to PDF | Bug |
SLIDESANDROID-472 | Application crashes when converting presentation to PDF | Bug |
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();
}