<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-diagram-cloud</artifactId>
<version>20.3</version>
</dependency>
compile(group: 'com.aspose', name: 'aspose-diagram-cloud', version: '20.3')
<dependency org="com.aspose" name="aspose-diagram-cloud" rev="20.3">
<artifact name="aspose-diagram-cloud" ext="jar"/>
</dependency>
libraryDependencies += "com.aspose" % "aspose-diagram-cloud" % "20.3"
Java Cloud REST API for Visio� Processing
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:
- Java 1.7+
- 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
- Type: OAuth
- Flow: application
- Authorization URL: https://api.aspose.cloud/connect/token
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
File | Classifier | Size |
---|---|---|
aspose-diagram-cloud-20.3-sources.jar | sources | 94.81 KB |
aspose-diagram-cloud-20.3.jar | 252.80 KB | |
aspose-diagram-cloud-20.3.pom | 5.71 KB |
Aspose.Diagram Aspose.Diagram Cloud Aspose Java REST API Maven SDK Java SDK Cloud REST REST API Cloud API MIT JWT oauth Aspose.Total Cloud VSDX VSX VTX VDX VSSX VSTX VSDM VSSM VSTM VDW VSD VSS VST PDF PDF/A XPS JPEG PNG BMP TIFF SVG EMF HTML XAML SWF create view convert converter conversion export exporter Visio drawing sketch flowchart image raster fixed-layout