Aspose.Slides for Java 18.5 Release Notes

SLIDESJAVA-36713Text missing when converting PPTX to PDFInvestigation
SLIDESJAVA-36498Support for setting custom position for child nodes in SmartArtFeature
SLIDESJAVA-36705PPTX loading takes long time and large memory amountFeature
SLIDESNET-39950Set Number of Nodes on Row levelFeature
SLIDESNET-40035Rendering comments from ODP formatFeature
SLIDESJAVA-34008Saving presentation to PDF takes huge time or fails to convert for a pptx with 300 slidesBug
SLIDESJAVA-34068Exporting PPTX to PDF takes more than 3 hoursBug
SLIDESJAVA-7940getThumbnail: justify alignment does not work on text with too many portionsBug
SLIDESJAVA-34814Out of Memory exception on exporting presentation to PDFBug
SLIDESJAVA-35142Incorrect portion OuterShadow colorBug
SLIDESJAVA-36632Exception on saving presentationBug
SLIDESJAVA-36731Cannot find any fonts installed on the system errorBug
SLIDESJAVA-36954ArrayIndexOutOfBoundsException on loading presentationBug
SLIDESJAVA-36955Wrong ClsidIndicator field value in OLEStream on loading presentationBug
SLIDESJAVA-36957ArgumentException: An element with the same key already exists on loading the presentationBug
SLIDESJAVA-36958NotImplementedException on loading the presentationBug
SLIDESJAVA-36960ArgumentOutOfRangeException: Cannot be negative is thrown on loading presentationBug
SLIDESJAVA-36961NullPointer Exception on loading presentationBug
SLIDESJAVA-36962ArgumentOutOfRangeException: Specified argument was out of the range is thrown on loading presentationBug
SLIDESJAVA-36963IndexOutOfRangeException is thrown on loading the presentationBug
SLIDESJAVA-36977Exception in deployed environmentsBug
SLIDESJAVA-37009Gradient PathBug
SLIDESJAVA-37014Exception on generating thumbnailsBug
SLIDESJAVA-37018Get maximum value of chart axisBug

Public API Changes

Support for setting X and Y properties has been added to com.aspose.SmartArtShape class

Aspose.Slides for Java versions from 14.9 to 17.6 did not support RawFrame, Frame, Rotation, X, Y, Width and Height properties of SmartArtShape class and thrown NotSupportedException on attempt of setting them. Since

Aspose.Slides for Java version 17.7 SmartArtShape supports setting Frame, Rotation, Width and Height properties.

Now in Aspose.Slides for Java version 18.5 support for setting SmartArtShape X and Y properties has been added.

The code snippet below shows how to set custom SmartArtShape position, size and rotation (please note that adding new nodes causes a recalculation of the positions and sizes of all nodes):

Presentation pres = new Presentation();
    ISmartArt smart = pres.getSlides().get_Item(0).getShapes().addSmartArt(20, 20, 600, 500, SmartArtLayoutType.OrganizationChart);

    // Move SmartArt shape to new position
    ISmartArtNode node = smart.getAllNodes().get_Item(1);
    ISmartArtShape shape = node.getShapes().get_Item(1);
    shape.setX(shape.getX() + shape.getWidth() * 2);
    shape.setY(shape.getY() - shape.getHeight() * 2);

    // Change SmartArt shape's widths
    node = smart.getAllNodes().get_Item(2);
    shape = node.getShapes().get_Item(1);
    shape.setWidth(shape.getWidth() + shape.getWidth() * 2);

    // Change SmartArt shape's height
    node = smart.getAllNodes().get_Item(3);
    shape = node.getShapes().get_Item(1);
    shape.setHeight(shape.getHeight() + shape.getHeight() * 2);

    // Change SmartArt shape's rotation
    node = smart.getAllNodes().get_Item(4);
    shape = node.getShapes().get_Item(1);
    shape.setRotation(90); + "SmartArt.pptx", SaveFormat.Pptx);
}finally {