Aspose.Diagram for .NET 17.12 Release Notes

Improvements and Changes

KeySummaryCategory
DIAGRAMNET-50016Add support to duplicate / clone a shapeEnhancement
DIAGRAMNET-50677Provide the single API to convert a Visio shape to PDFEnhancement
DIAGRAMNET-50678Provide the single API to convert a Visio shape to HTMLEnhancement
DIAGRAMNET-50762The parsing error of the long attributes value occurred while generating a VDX diagramBug
DIAGRAMNET-51401Output VSDX - the controls in Shapes do not workBug
DIAGRAMNET-51402VSDX to image - an OLE object is not preservedBug
DIAGRAMNET-51406VSD to image - the additional characters appearBug
DIAGRAMNET-51410VSD to PDF - the page number remains 4 in all pagesBug
DIAGRAMNET-51411VSD to image - the page number remains 4 in all pagesBug
DIAGRAMNET-51414VSDX to PDF - missing the content of shapesBug
DIAGRAMNET-51415VSDX to PDF - incorrect background color of the shapesBug
DIAGRAMNET-51416VSDX to HTML - incorrect background color of the shapesBug

Public API and Backwards Incompatible Changes

The following is a list of 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 .NET. If you have concerns about any change listed, please raise them in the Aspose.Diagram support forum.

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.Pages[0].Shapes[0]);

newShape.ID = 3;

newShape.XForm.PinX.Value = 1;

newShape.XForm.PinY.Value = 1;

Adds ToPdf member in Shape class

The ToPdf member converts a shape into the PDF format.

 // import diagram

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

// save a shape in the PDF format

diagram.Pages[0].Shapes.GetShape(59).ToPdf("e:\\out.pdf");

Adds ToHTML member in Shape class

The ToHTML member converts a shape into the PDF format.

 // import diagram

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

Aspose.Diagram.Saving.HTMLSaveOptions hs = new Aspose.Diagram.Saving.HTMLSaveOptions();

// save a shape in the PDF format

diagram.Pages[0].Shapes.GetShape(59).ToHTML("e:\\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