Java API for Microsoft Visio® File Formats
Aspose.Diagram for Java API is a solution for Microsoft Visio file manipulation requirements. It allows the Java applications to read, write, export and process Microsoft Visio diagrams while supporting all Visio objects & properties including shapes, pages, images, shape masters, stencils, text, layers, header, footers, user-defined cells, hyperlinks, file protection, geometries, text boxes, and comments.
Aspose.Diagram for Java can also be used to apply protection to the Microsoft Visio drawings by locking backgrounds, stencils (master) as well as shapes and styles to avoid any accidental amendments.
Directory | Description |
---|---|
Examples | A collection of Java examples that help you learn the product features. |
Plugins | Plugins that will demonstrate one or more features of Aspose.Diagram for Java. |
Visio File Processing Features
- Load, create, save and convert Microsoft Visio diagrams.
- Create Master from sctrach or add from Stencil of Shapes.
- Create, Layout and Auto-Fit Shapes as well as retrieve Visio Connectors and Font Information.
- Modify Geometry Section of a Connector Shape.
- Insert an ActiveX Control in the Visio Diagram.
- Printing to specific printer or set printer and document name.
Read & Write Visio Formats
Microsoft Visio: VSDX, VSX, VTX, VDX, VSSX, VSTX, VSDM, VSSM, VSTM
Save Visio Diagrams As
Fixed Layout: PDF, XPS
Images: JPEG, PNG, BMP, TIFF, SVG, EMF
Web: HTML
Other: XAML, SWF
Read Visio Formats
Microsoft Visio: VDW, VSD, VSS, VST
Supported Environments
- Microsoft Windows: Windows Desktop & Server (x86, x64)
- macOS: Mac OS X
- Linux: Ubuntu, OpenSUSE, CentOS, and others
-
Java Versions:
J2SE 7.0 (1.7)
,J2SE 8.0 (1.8)
Get Started with Aspose.Diagram for Java
Aspose hosts all Java APIs at the Aspose Repository. You can easily use Aspose.BarCode for Java API directly in your Maven projects with simple configurations. For the detailed instructions please visit Installing Aspose.Diagram for Java from Aspose Repository documentation page.
Auto-fit Visio Diagram using Java
// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-Java
// The path to the documents directory.
String dataDir = Utils.getDataDir(AutoFitShapesInVisio.class);
// load a Visio diagram
Diagram diagram = new Diagram(dataDir + "BFlowcht.vsdx");
// use saving options
DiagramSaveOptions options = new DiagramSaveOptions(SaveFileFormat.VSDX);
// set Auto fit page property
options.setAutoFitPageToDrawingContent(true);
// save Visio diagram
diagram.save(dataDir + "AutoFitShapesInVisio_Out.vsdx", options);
Home | Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License