Aspose.Diagram for .NET is a flexible and comprehensive Visio diagram API allowing software and app developers to create powerful Visio file processing apps across C#, ASP.NET, and VB.NET. With the help of this native .NET diagramming API, you can build mobile applications, desktop solutions, and tools for web interfaces to create, modify, transform, and export Microsoft Visio diagrams. Aspose.Diagram for .NET library supports popular Visio file formats such as VSD, VSDX, VTX, VDX, VSX, VSSX, VTSX, VSDM, and VSSM. You can quickly and easily develop sophisticated diagram conversion solutions using this .NET Visio diagram API and convert your Visio files to PDF, JPG, PNG, BMP, HTML, XPS, SVG, and EMF file formats.
Among many of its advanced Visio file processing features, Aspose.Diagram for .NET enables rotating shapes, retrieving information about connectors and fonts, grouping shapes, injecting images into drawings, adding new pages to Visio drawings, and doing much more. Furthermore, you can also draw rectangles, polylines, Bezier, and many other shapes on Visio pages.
Please check the prerequisites on the System Requirements page before setting up the .NET diagramming API for an optimized installation and API usage experience.
To install Aspose.Diagram for .NET API, you can download the DLLs or the MSI installer from the downloads section. Or, you can use the NuGet package to set up the Visio diagram API for .NET. The command for the package manager console is given below:
Developers can programmatically create MS Visio diagrams from scratch using Aspose.Diagram for .NET library. You can effortlessly insert new pages and shapes, or manipulate different shape properties in the diagram files you create. Independently converting the VSD and VSDX Visio diagram formats to PDF files in high fidelity is also supported by the .NET diagramming API.
Aspose.Diagram for .NET API is a complete diagram manipulation solution enabling developers to create Visio diagrams loaded with all essential elements such as shapes, flowcharts, comments, and much more. You can use the .NET diagram API to create Visio documents from scratch with the help of the below-given steps and information:
- // The path to the documents directory.
- string dataDir = RunExamples.GetDataDir_Diagrams();
- // Create a directory if it is not already present.
- bool IsExists = System.IO.Directory.Exists(dataDir);
- if (!IsExists)
- System.IO.Directory.CreateDirectory(dataDir);
- // Initialize a new Visio
- Diagram diagram = new Diagram();
- dataDir = dataDir + "CreateDiagram_out.vsdx";
- // Save in the VSDX format
- diagram.Save(dataDir, SaveFileFormat.VSDX);
Converting files to PDF format makes sharing and accessing them easier across multiple devices. Aspose.Diagram for .NET API allows converting Visio diagrams to PDF format within your C# .NET apps. You can programmatically convert VSD or VSDX to PDF with high conversion quality. The following steps and information will help you in achieving this:
- // Load Visio diagram
- Aspose.Diagram.Diagram diagram = new Aspose.Diagram.Diagram("Sample.vsd");
- // Declare PdfSaveOptions object
- Aspose.Diagram.Saving.PdfSaveOptions saveOptions = new Aspose.Diagram.Saving.PdfSaveOptions();
- // Number of pages to render
- saveOptions.PageCount = 2;
- // Set first page index
- saveOptions.PageIndex = 1;
- // Save Visio diagram to PDF
- diagram.Save("PDF_out.pdf", saveOptions);
- Console.WriteLine("Done");
More working examples of Aspose.Diagram for .NET API are available on the GitHub Examples page. We offer free online apps of Aspose.Diagram to edit, view, convert, merge, watermark, split, and compress Microsoft Visio diagram files on the fly using your mobile or desktop devices. Please feel free to try the online apps for manipulating Visio diagrams from anywhere.
Aspose.Diagram for .NET API allows accessing and reading data from Microsoft Visio files, processing it, and printing the processed files in high quality with multiple printing options, using minimum coding. You do not need to install Microsoft Office or Microsoft Visio when processing Visio diagram files with Aspose.Diagram for .NET, giving you an independent user experience.
Converting Visio diagrams in .NET is quick and easy using Aspose.Diagram for .NET API. Only a few lines of .NET coding are needed to convert your VSD, VSDX, VSX, VTX, VDX, VSDM, and other diagram files to different file formats.
The .NET diagram API works fast and completes your diagram conversion requests in no time.
You can be sure of the security of your diagram files while processing them using Aspose.Diagram for .NET API. We ensure the privacy of your data and take all required measures to provide you with a secure user experience.
Yes, the diagramming API for .NET works across different OS, frameworks, and operating environments. You can use it on the platform of your choice and it does not require any additional software installation to function.