Aspose.Slides for Java 21.9 Release Notes

KeySummaryCategoryRelated Documentation
SLIDESNET-38994Getting automatic table cells fill colorFeature
SLIDESNET-40508Slow slide cloning performance in Aspose.SlidesEnhancement
SLIDESNET-42579Getting the number of worksheets in a workbookEnhancement
SLIDESJAVA-36426Text missing after saving pptBug
SLIDESJAVA-33558Glow effects are lost in generated PDF/HTMLBug
SLIDESJAVA-35688Missing Smart Art on Notes MasterBug
SLIDESJAVA-36390Getting automatic table cells fill colorFeature
SLIDESJAVA-35312SmartArt shapes lost after load and saveBug
SLIDESJAVA-38615PPTX to PNG: Multi threading conversion losing textInvestigation
SLIDESJAVA-38551EMF images are not showing when converting PPTX to PDFBug
SLIDESJAVA-33560Reflection effects are lost for shapes in PDF/HTMLBug
SLIDESJAVA-38564Text becomes non-bold after converting presentation to SVGBug
SLIDESJAVA-38244Use Aspose.Slides for Net 21.9 featuresEnhancement
SLIDESJAVA-38595Slides merging is producing misaligned contentBug
SLIDESJAVA-36881Slide Content missing on saving pptBug
SLIDESJAVA-28870Animation sequence changed after portion text changedBug
SLIDESJAVA-38585Text missing in generated PDF when using FontsLoader.loadExternalFontBug
SLIDESJAVA-37298Slow slide cloning performance in Aspose.SlidesEnhancement
SLIDESJAVA-33559Shadow effects are lost for shapes in PDF/HTMLBug
SLIDESJAVA-31771Text and shadow improperly rendered in thumbnailBug
SLIDESJAVA-33774Shadow effects lost in generated PDFBug
SLIDESJAVA-33942Text effects are missing in generated PDFBug
SLIDESJAVA-36698Fill format not being returned for slidesBug
SLIDESJAVA-37397Thumbnails not properly generated from pptxBug
SLIDESJAVA-38575Duotone effective exception on accessing colorBug
SLIDESJAVA-38572Exception on accessing solid fill colorBug
SLIDESJAVA-34369Font Shadow is not coming fine in the generated PDF fileBug
SLIDESJAVA-34560System exception is thrown on exporting PPTX to PDFBug
SLIDESJAVA-35551ArrayIndexOutOfBoundsException on loading ODP presentationBug
SLIDESJAVA-34940Get table cell text and fill color is not working for presentationBug
SLIDESJAVA-34988Saving odp as odp eats up all memoryBug
SLIDESJAVA-33713The shape connectors are improperly rendered in generated thumbnailsBug
SLIDESJAVA-33800Wrong text rendering in thumbnails and PdfBug

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();