<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!  

用于 Visio 处理的 Java Cloud REST API

banner

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

Aspose.Diagram Cloud SDK for Java 帮助您在基于云的 Java 应用程序中使用 Microsoft Visio® 文件格式,而无需安装任何第 3 方软件。它是 Aspose.Diagram Cloud REST APIs 的包装器。

Visio® 云处理功能

  • Convert diagrams 到 20 多种不同的文件格式。
  • 检索 Visio® 图表的文档信息。
  • 以编程方式创建新的 Microsoft Visio® 图表文件。
  • 将 Visio® 流程图转换为其他支持的格式。
  • 将面向业务的 Visio® 图表上传到云存储。
  • 将 Visio® 文件导出为光栅图像、固定布局和 HTML 格式。

绘制云存储功能

  • 上传、下载、复制、移动和删除文件,包括版本处理(如果您使用的是支持此功能的云存储 - 默认情况下为真)。
  • 创建、复制、移动和删除文件夹。
  • 在单个操作范围内跨不同存储复制和移动文件和文件夹。
  • 检查某个文件、文件夹或存储是否存在。

从中读取图表

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

将图表另存为

Microsoft Visio®: VSDX、VDX、VSX、VTX、VSSX、VSTX、VSDM、VSSM、VSTM
固定布局: PDF、XPS
多媒体: SWF、SVG、EMF、JPEG、PNG、BMP、TIFF
网页: HTML

要求

构建 API 客户端库需要:

  1. Java 1.7+
  2. 行家

先决条件

要使用 Aspose.Diagram Cloud SDK for Java,您需要在 Aspose Cloud 注册一个帐户并在 Cloud Dashboard 查找/创建客户端 ID 和客户端密码。有可用的免费配额。有关详细信息,请参阅Aspose Cloud Pricing

安装

从 Maven 安装

将 Aspose Cloud 存储库添加到您的应用程序 pom.xml

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

从源安装

要将 API 客户端库安装到本地 Maven 存储库,只需执行:

mvn clean install

要将其部署到远程 Maven 存储库,请配置存储库的设置并执行:

mvn clean deploy

有关更多信息,请参阅 OSSRH Guide

Maven 用户

将此依赖项添加到项目的 POM 中:

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

### 其他

首先通过执行生成JAR:

mvn clean package

然后手动安装以下 JAR:

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

许可

所有 Aspose.Diagram Cloud SDK、帮助脚本和模板均已根据 MIT License 获得许可。

授权与认证

Authentication schemes API定义如下:

###智威汤逊

推荐

建议在多线程环境中为每个线程创建一个“ApiClient”实例,以避免任何潜在问题。

在 Java 中创建 VDX 图

// 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.32020年4月26日
19.102019年11月4日
18.102019年1月8日