<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-diagram-cloud</artifactId>
    <version>19.10</version>
</dependency>
copied!  
compile(group: 'com.aspose', name: 'aspose-diagram-cloud', version: '19.10')
copied!  
<dependency org="com.aspose" name="aspose-diagram-cloud" rev="19.10">
    <artifact name="aspose-diagram-cloud" ext="jar"/>
</dependency>
copied!  
libraryDependencies += "com.aspose" % "aspose-diagram-cloud" % "19.10"
copied!  

Java Cloud REST API for Visio� Processing

banner

Product Page | Documentation | Live Demo | Swagger UI | Code Samples | Blog | Free Support | Free Trial

Aspose.Diagram Cloud SDK for Java helps you work with Microsoft Visio® file formats within your cloud-based Java Apps, without installing any 3rd party software. It is a wrapper around Aspose.Diagram Cloud REST APIs.

Visio® Cloud Processing Features

  • Convert diagrams to 20+ different file formats.
  • Retrieve document information of a Visio® diagram.
  • Programmatically create a new Microsoft Visio® diagram file.
  • Convert Visio® flow-charts to other supported formats.
  • Upload your business-oriented Visio® diagrams to cloud storage.
  • Export Visio® files to raster images, fixed-layout, and HTML formats.

Drawing Cloud Storage Features

  • Upload, download, copy, move and delete files, including versions handling (if you are using Cloud storage that supports this feature - true by default).
  • Create, copy, move and delete folders.
  • Copy and move files and folders accross separate storages in scope of a single operation.
  • Check if certain file, folder or storage exists.

Read Diagrams From

Microsoft Visio®: VSDX, VDX, VSD, VSX, VTX, VSSX, VSTX, VSDM, VSSM, VSTM, VDW, VSS, VST

Save Diagrams As

Microsoft Visio®: VSDX, VDX, VSX, VTX, VSSX, VSTX, VSDM, VSSM, VSTM
Fixed-Layout: PDF, XPS
Multimedia: SWF, SVG, EMF, JPEG, PNG, BMP, TIFF
Web: HTML

Requirements

Building the API client library requires:

  1. Java 1.7+
  2. Maven

Prerequisites

To use Aspose.Diagram Cloud SDK for Java you need to register an account with Aspose Cloud and lookup/create Client ID and Client Secret at Cloud Dashboard. There is free quota available. For more details, see Aspose Cloud Pricing.

Installation

Install from Maven

Add Aspose Cloud repository to your application pom.xml

<repositories>
	<repository>
		<id>AsposeJavaAPI</id>
		<name>Aspose Java API</name>
		<url>https://releases.aspose.cloud/java/repo/</url>
	</repository>
</repositories>

Install from source

To install the API client library to your local Maven repository, simply execute:

mvn clean install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn clean deploy

Refer to the OSSRH Guide for more information.

Maven users

Add this dependency to your project’s POM:

<dependencies>
	<dependency>
		<groupId>com.aspose</groupId>
		<artifactId>aspose-diagram-cloud</artifactId>
		<version>20.3</version>
	</dependency>
</dependencies>

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/aspose-diagram-cloud-20.3.jar
  • target/lib/*.jar

Licensing

All Aspose.Diagram Cloud SDKs, helper scripts and templates are licensed under MIT License.

Authorization & Authentication

Authentication schemes defined for the API is as follows:

JWT

Recommendation

It’s recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.

Create VDX Diagram in Java

// Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).
DiagramApi api = new DiagramApi("client_credentials", "MY_CLIENT_ID", "MY_CLIENT_SECRET");

String fileName = "sample.vdx";
String folder = "my_output";
Boolean is_overwrite = "true";
CreateNewResponse response = api.postDiagramConvert(fileName, folder, is_overwrite);

Product Page | Documentation | Live Demo | Swagger UI | Code Samples | Blog | Free Support | Free Trial

VersionRelease Date
20.3April 26, 2020
19.10November 4, 2019
18.10January 8, 2019