Aspose.Diagram for Java 17.02.0 Release Notes

Improvements and Changes

KeySummaryCategory
DIAGRAMJAVA-50037VSD to PDF conversion, the background color shade of a group shape is getting changed.Bug
DIAGRAMJAVA-50365A blank page is generated while converting a Visio page with equations to PNG.Bug
DIAGRAMJAVA-50461Borders are missing while converting VSDX to PNG.Bug
DIAGRAMJAVA-50462Symbol disappears while converting VSDX to PNG.Bug
DIAGRAMJAVA-50463Symbol disappears while converting VSDX to SVG.Bug
DIAGRAMJAVA-50465Color of the text is different while converting VSDX to PNG.Bug
DIAGRAMJAVA-50466The text position is incorrect when VSD is converted to SVG format.Bug
DIAGRAMJAVA-50237 [VSDX to PDF] - Error message occurred when used LeagueGothic Regular font.Exception

Public API and Backwards Incompatible Changes

See the list for any changes made to the public API such as added, renamed, removed or deprecated members as well as any non-backward compatible change made to Aspose.Diagram for Java. If you have concerns about any change listed, please raise it on the Aspose.Diagram support forum.

Adds Shape.getParentShape Method

The Shape.getParentShape method allows to get the parent shape of a recent shape.

 // Call a Diagram class constructor to load the Visio drawing

Diagram diagram = new Diagram("Drawing1.vsdx");

// get a sub-shape by page name, group shape ID, and then sub-shape ID

Shape shape = diagram.getPages().getPage("Page-3").getShapes().getShape(13).getShapes().getShape(2);

Shape parentShape = shape.getParentShape();

System.out.println("Parent Shape's Properties:");

System.out.println("Shape ID: " + parentShape.getID());

System.out.println("Shape Name: " + parentShape.getName());

System.out.println("Shape Type: " + parentShape.getType());

Adds Shape.isInGroup Method

The Shape.isInGroup method allows to detect if the recent shape is part of any group shape.

 // Call a Diagram class constructor to load the Visio drawing

Diagram diagram = new Diagram("Drawing1.vsdx");

// get a sub-shape by page name, group shape ID, and then sub-shape ID

Shape shape = diagram.getPages().getPage("Page-3").getShapes().getShape(13).getShapes().getShape(2);

System.out.println("Is it in a Group: " + shape.isInGroup());

Adds Metered Class

The Metered class is added. It allows developers to unlock the evaluation limitations of Aspose.Diagram API as well as track and maintain API licenses. It also monitors the regular usage of Aspose.Diagram API.

 // Initialize a Metered license class object

Metered metered = new Metered();

// apply public and private keys

metered.setMeteredKey("your-public-key", "your-private-key");

Usage Examples

Please check the list of help topics added in the Aspose.Diagram Wiki docs: 

  1. Set Public and Private Keys to Apply Metered License
  2. Retrieve the Parent Shape of a Sub-Shape
  3. Verify Whether the Visio Shape is in a Group of Shapes