Browse our Products

Aspose.Diagram for Java 17.12 Release Notes

Improvements and Changes

KeySummaryCategory
DIAGRAMJAVA-50290Provide the single API to convert a Visio shape to PDFEnhancement
DIAGRAMJAVA-50291Provide the single API to convert a Visio shape to HTMLEnhancement
DIAGRAMJAVA-50572Shape.connectedShapes method does not retrieve outgoing nodesEnhancement
DIAGRAMJAVA-50391The flipped images and arrows are generated on converting a VSD to SVGBug
DIAGRAMJAVA-50570VSD to PDF - the additional text items are addedBug
DIAGRAMJAVA-50571Import VSDX - an error occurred in the shape elementBug
DIAGRAMJAVA-50573VSD to SVG - the lines of a group shape are missingBug
DIAGRAMJAVA-50575VSD to SVG - the text items are missingBug
DIAGRAMJAVA-50576Import VDX procedure throws a page element errorBug

Adds Copy member in Shape class

The copy member takes a target shape instance, as a parameter to clone this shape.

 // import diagram

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

Shape newShape = new Shape();

// copy diagram

newShape.copy(diagram.getPages().get(0).getShapes().get(0));

newShape.setID(3);

newShape.getXForm().getPinX().setValue(1);

newShape.getXForm().getPinY().setValue(1);

Adds toPdf member in Shape class

The toPdf member converts a shape into the PDF format.

 String dataDir = "C:\\temp\\";

// import diagram

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

// save a shape in the PDF format

diagram.getPages().get(0).getShapes().getShape(59).toPdf(dataDir + "out.pdf");

Adds toHTML member in Shape class

The toHTML member converts a shape into the PDF format.

 String dataDir = "C:\\temp\\";

// import diagram

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

HTMLSaveOptions hs = new HTMLSaveOptions();

// save a shape in the PDF format

diagram.getPages().get(0).getShapes().getShape(59).toHTML(dataDir + "out.pdf", hs);

Usage Examples

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

  1. Copy a Visio Shape to another Shape instance
  2. Convert Visio Shape to PDF
  3. Convert Visio Shape to HTML


 
 English