Java API to Manipulate and export Visio diagrams

Diagram API to manipulate and convert Microsoft Office Visio® files to PDF, HTML, Images, SWF and XAML formats within any Java based application.

  Download Free Trial
Aspose.Diagram for Java

Aspose.Diagram for Java


Aspose.Diagram for Java is an easy-to-use, high-performance and well-documented Java API that allows developers to create, manipulate & convert native Visio file formats from within their Java applications, and without the need to rely on Microsoft Visio®.

Developers can create diagrams from scratch as well as load existing files and manipulate the elements of the diagram to export the result in other Visio formats, images or fixed-layout formats.


Advanced Java Diagram API Features



Read multiple Visio formats


Read properties of different objects in diagram


Save diagrams as XML


Group multiple shapes


Configure Visio TimeLine shapes


Specify fonts location


Manipulate Visio document properties


Print Visio diagrams with high fidelity


Rotate a shape at suitable angle


Add comments to Visio drawings


Add hyperlink to a Visio shape


Protect or unprotect diagrams & shapes


Create user-defined cell in the shapesheet


Insert a new blank page into a Visio drawing


Set locale as per your requirements

Manipulate Microsoft Visio Documents

Aspose.Diagram for Java API allows to read native file formats of Microsoft Visio application, thus allowing you to access the data of the diagram like Document Properties, Pages, Masters, Shapes, Images, Connects, Solution XML, Comments, Hyperlinks, StyleSheet, Layers, user-defined cells and so on. These objects can be manipulated through the Aspose.Diagram API, and the result can be written to disk in any of the supported formats.

Export Visio Diagrams to Images, PDF & HTML

Developers can load Visio files and render them to popular image formats including BMP, JPEG, PNG, TIFF, SVG and EMF. The API also provides the ability to export Visio files to PDF, HTML & XPS formats with highest fidelity.

Save diagram in different formats - Java

// load file to be converted
Diagram diagram = new Diagram(dir + "template.vsdx");
// convert to other formats"D:/output.pdf", SaveFileFormat.PDF);"D:/output.html", SaveFileFormat.HTML);"D:/output.jpg", SaveFileFormat.JPEG);

Organize Shapes in a Container

Normally, developers add shapes in a container to keep things well organized and understandable. The containers add a visual boundary around shapes, including a label. To add a container and sub shapes to the diagram, developers can use Aspose.Diagram for Java API because it gives an easy and quick approach.

Combine Multiple Shapes in a Group

Using Aspose.Diagram for Java API, developers may group shapes, pictures, or other objects. Grouping lets them rotate, flip, move, or resize all shapes or objects at the same time as though they were a single shape or object.

Print Diagrams Easily & Reliably

Aspose.Diagram for Java allows the developers to print diagrams using various options - with just a few lines of code. You can choose to print with default settings or to any of the available printer with customized settings.

Print Visio diagrams to physical printer - Java

// load file to be printed
Diagram diagram = new Diagram(dir + "template.vsdx");
// print while specifying printer name & print job
diagram.print("LaserJet1100", "Job Name");

Microsoft Office Automation - Not Needed

Aspose.Diagram for Java is built using managed code that does not need Microsoft Office or Microsoft Visio to be installed on the machine to work with Visio files processing. It is a perfect Microsoft Office Visio automation alternative in terms of supported features, security, stability, scalability, speed and price.


Support and Learning Resources


Aspose.Diagram offers individual Diagramming APIs for other popular development environments as listed below: