Aspose.Diagram for .NET logo

We are pleased to announce that the new version 17.10 of Aspose.Diagram API is now live. The new version of the API adds a feature to export the Visio drawing to image format in the same way as the API converts a Visio drawing to PDF. The recent version covers a feature, enhancement and regular bug fixes. We recommend our client to incorporate the latest upgrade of Aspose.Diagram API to take benefit of improved functionality and bug fixes. Please use the following links for downloading Aspose.Diagram for .NET and Java assemblies.

Convert Visio Drawing to Image with PDF Export Area Option

Aspose.Diagram API has the support of converting Visio drawing to an image. With the recent version 17.10, developers can convert a drawing to image with the same conversion area as Microsoft Visio application converts a drawing to PDF. In order to achieve this, we have added the SameAsPdfConversionArea member in the ImageSaveOptions class. Please try the following code example:

C#

string dataDir = @"C:\temp\";// load a drawingDiagram diagram = new Diagram(dataDir + "Drawing1.vsdx");// specify image save optionsImageSaveOptions opts = new ImageSaveOptions(SaveFileFormat.PNG);opts.SameAsPdfConversionArea = true;

Java

String dataDir = "C:\\\\temp\\\\";  
// load a drawing  
Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx");  
// specify image save options  
ImageSaveOptions opts = new ImageSaveOptions(SaveFileFormat.PNG);  
opts.setSameAsPdfConversionArea(true);

Public Aspose.Diagram for .NET and Java API Changes

The following API changes in the new version are worth noticing:

  • SameAsPdfConversionArea member is added to the ImageSaveOptions class. It helps to specify whether to save area in the same way as the PDF.

Aspose.Diagram for .NET and Java Resources

The following resources will help you work with Aspose.Diagram for .NET: