Imran Rafique October 30, 20170 Comments

Visio drawing to image export with PDF area conversion using Aspose.Diagram for .NET API

Visio drawing to image export with PDF area conversion using Aspose.Diagram for .NET API

October 30, 2017
Share on FacebookTweet about this on TwitterShare on LinkedIn
Aspose.Diagram for .NET logoWe 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 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 SameAsPdfConversionArea member in the ImageSaveOptions class. Please try the following code example:

C#
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.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:

Leave a comment

Posted inAspose.Diagram Product Family
 

Related Articles