Aspose.Slides for Java 21.9 Release Notes

Key Summary Category Related Documentation
SLIDESNET-38994 Getting automatic table cells fill color Feature
SLIDESNET-40508 Slow slide cloning performance in Aspose.Slides Enhancement
SLIDESNET-42579 Getting the number of worksheets in a workbook Enhancement
SLIDESJAVA-36426 Text missing after saving ppt Bug
SLIDESJAVA-33558 Glow effects are lost in generated PDF/HTML Bug
SLIDESJAVA-35688 Missing Smart Art on Notes Master Bug
SLIDESJAVA-36390 Getting automatic table cells fill color Feature
SLIDESJAVA-35312 SmartArt shapes lost after load and save Bug
SLIDESJAVA-38615 PPTX to PNG: Multi threading conversion losing text Investigation
SLIDESJAVA-38551 EMF images are not showing when converting PPTX to PDF Bug
SLIDESJAVA-33560 Reflection effects are lost for shapes in PDF/HTML Bug
SLIDESJAVA-38564 Text becomes non-bold after converting presentation to SVG Bug
SLIDESJAVA-38244 Use Aspose.Slides for Net 21.9 features Enhancement
SLIDESJAVA-38595 Slides merging is producing misaligned content Bug
SLIDESJAVA-36881 Slide Content missing on saving ppt Bug
SLIDESJAVA-28870 Animation sequence changed after portion text changed Bug
SLIDESJAVA-38585 Text missing in generated PDF when using FontsLoader.loadExternalFont Bug
SLIDESJAVA-37298 Slow slide cloning performance in Aspose.Slides Enhancement
SLIDESJAVA-33559 Shadow effects are lost for shapes in PDF/HTML Bug
SLIDESJAVA-31771 Text and shadow improperly rendered in thumbnail Bug
SLIDESJAVA-33774 Shadow effects lost in generated PDF Bug
SLIDESJAVA-33942 Text effects are missing in generated PDF Bug
SLIDESJAVA-36698 Fill format not being returned for slides Bug
SLIDESJAVA-37397 Thumbnails not properly generated from pptx Bug
SLIDESJAVA-38575 Duotone effective exception on accessing color Bug
SLIDESJAVA-38572 Exception on accessing solid fill color Bug
SLIDESJAVA-34369 Font Shadow is not coming fine in the generated PDF file Bug
SLIDESJAVA-34560 System exception is thrown on exporting PPTX to PDF Bug
SLIDESJAVA-35551 ArrayIndexOutOfBoundsException on loading ODP presentation Bug
SLIDESJAVA-34940 Get table cell text and fill color is not working for presentation Bug
SLIDESJAVA-34988 Saving odp as odp eats up all memory Bug
SLIDESJAVA-33713 The shape connectors are improperly rendered in generated thumbnails Bug
SLIDESJAVA-33800 Wrong text rendering in thumbnails and Pdf Bug

Public API Changes

HTML5 Export Support

We implemented support for HTML5 Export in Slides (enhanced customizable version of HTML5 Support).

The new Html5 value has been added to SaveFormat enumerations. This value represents the HTML5 format for exporting.

The code snippet below demonstrates the saving presentation in HTML5 operation:

Presentation presentation = new Presentation("SomePresentation.pptx");
try {"index.html", SaveFormat.Html5);
} finally {
	if (presentation != null) presentation.dispose();

Using the Html5Options configuration, you can export a presentation containing slides transitions, animations, and shapes animations to HTML5:

Presentation pres = new Presentation("demo.pptx");
try {
	Html5Options html5Options = new Html5Options();
	html5Options.setAnimateTransitions(true);"demo-animate.html", SaveFormat.Html5, html5Options);
} finally {
	if (pres != null) pres.dispose();

Access to the ChartDataWorksheetCollection has been added

To provide access to worksheets, we added the IChartDataWorksheetCollection interface, ChartDataWorksheetCollection class, and IChartDataWorkbook.getWorksheets() method.

Presentation pres = new Presentation();
try {
	IChart chart = pres.getSlides().get_Item(0).getShapes().addChart(ChartType.Pie, 50, 50, 400, 500);

	IChartDataWorkbook workbook =  chart.getChartData().getChartDataWorkbook();
	for (int i = 0; i < workbook.getWorksheets().size(); i++)
} finally {
	if (pres != null) pres.dispose();

IAccessiblePVIObject interface has been added

IAccessiblePVIObject interface has been added. It represents a type that can be a source of an effective version of its data.

IAccessiblePVIObject declaration:

 * <p>
 * Represents a type that can return corresponding effective data with the inheritance applied.
 * </p><p>Type of effective data.</p>
public interface IAccessiblePVIObject<T>
     * <p>
     * Gets effective data with the inheritance applied.
     * </p>
     * @return An effective data object.
    public T getEffective();

Currently, all effect types implement the IAccessiblePVIObject interface—and this means you can get effective values for effects with styled colors resolved.

This code demonstrates an operation where we added a picture for a slide background, added Duotone effect with styled colors, and then we got the effective duotone colors with which the background will be rendered:

Presentation presentation = new Presentation();
try {
    byte[] imageBytes = Files.readAllBytes(Paths.get("someimage.png"));
    IPPImage backgroundImage = presentation.getImages().addImage(imageBytes);


    IDuotone duotone = presentation.getSlides().get_Item(0).getBackground().getFillFormat().


    IDuotoneEffectiveData duotoneEffective = duotone.getEffective();

    System.out.println("Duotone effective color1: " + duotoneEffective.getColor1());
    System.out.println("Duotone effective color2: " + duotoneEffective.getColor2());
} catch(IOException e) {
} finally {
    if (presentation != null) presentation.dispose();