If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.
If you experience errors, when you try to download a file, make sure your network policies (enforced by your company or ISP) allow downloading ZIP and/or MSI files.
Installation
The package is available at pypi.org and it can be installed via pip
by executing following command:
pip install asposediagramcloud
Create & Manage Visio® Diagrams Cloud REST API
Aspose.Diagram Cloud SDK for Python allows developers to create, convert, and manage Microsoft Visio® diagrams directly within their Python applications, without requiring Microsoft Visio® to be installed. The SDK supports multiple diagram file formats, including VSDX, VDX, PDF, and others, ensuring seamless integration with cloud services and REST APIs. Python developers can upload, download, and manipulate diagrams across different platforms, including web, desktop, and mobile. With OAuth authentication, this SDK ensures secure and reliable diagram processing in the cloud. Perfect for Python developers looking to handle Visio® diagrams in their cloud-based applications.
Convert Diagram File
Convert Visio diagram files to different formats using the endpoint /diagram/{name}/SaveAs
.
Save Options
Convert diagrams to popular formats like PDF and receive a link to the saved file.
Retrieve Info
Extract diagram details such as page names and shapes through /diagram/{name}
.
Upload Diagram File
Upload to Cloud
Upload a Visio diagram file to Cloud Storage with /diagram/{name}/upload
.
Create Diagram File
Create New
Generate a new empty diagram file in a specified format using /diagram/{name}
.
Manage Files and Storage
Download File
Download files from Cloud Storage via /diagram/storage/file/{path}
.
Upload File
Upload files to Cloud Storage using /diagram/storage/file/{path}
.
Copy File
Copy files to a new location in Cloud Storage using /diagram/storage/file/copy/{srcPath}
.
Move File
Move files across Cloud Storage using /diagram/storage/file/move/{srcPath}
.
Delete File
Remove files from Cloud Storage using /diagram/storage/file/{path}
.
Format | Description | Load | Save |
---|
VSDX | Microsoft Visio Drawing that uses OPC (Open Packaging Conventions) | ✔️ | ✔️ |
VDX | Drawing or chart created with Microsoft Visio | ✔️ | ✔️ |
VSD | Visio Drawing (Vector Graphics File Format) | ✔️ | |
VSX | Visio Stencil XML file type | ✔️ | ✔️ |
VTX | XML for Visio (Template File) | ✔️ | ✔️ |
VSSX | Visio Stencil file with objects for technical drawings | ✔️ | ✔️ |
VSTX | Microsoft Visio Drawing Template | ✔️ | ✔️ |
VSDM | Visio Macro-Enabled Drawing file type | ✔️ | ✔️ |
VSSM | Stores a collection of shapes | ✔️ | ✔️ |
VSTM | Visio Drawing Template with macros | ✔️ | ✔️ |
VDW | Visio Web Drawing File Type | ✔️ | |
VSS | Visio Stencil File Type | ✔️ | |
VST | VST Template File | ✔️ | |
PDF | Portable Document Format | | ✔️ |
XPS | XML Paper Specification format | | ✔️ |
XAML | XML Application Markup Language | | ✔️ |
SWF | Adobe Flash File | | ✔️ |
SVG | Scalable Vector Graphics (XML-based vector image) | | ✔️ |
EMF | Enhanced MetaFile | | ✔️ |
JPEG | Joint Photographic Experts Group format | | ✔️ |
PNG | Portable Network Graphics format | | ✔️ |
BMP | Bitmap Image Format | | ✔️ |
TIFF | Single or Multi-Page TIFF Image | | ✔️ |
HTML | HyperText Markup Language | | ✔️ |
Platform | Description |
---|
Python | Fully supported via REST API in Python applications. |
.NET | Supported through REST API in .NET applications. |
Java | Supported via REST API in Java applications. |
PHP | Accessible via REST API in PHP applications. |
Ruby | Available via REST API in Ruby applications. |
Node.js | Accessible via REST API in Node.js applications. |
Web | Usable in web-based platforms via REST API. |
Desktop | Compatible with desktop environments via REST API. |
Mobile | Supported on mobile platforms through REST API. |
Cloud | Works with various cloud platforms using REST API. |
Get Started
Create an Account
Go to Aspose for Cloud and create an account. Obtain your application information.
Install Aspose.Diagram Cloud SDK for .NET
Open the Package Manager Console in Visual Studio and execute the following command to install the SDK:
Install-Package Aspose.Diagram-Cloud
Upgrade the SDK (if needed)
To update to the latest version of Aspose.Diagram Cloud SDK for .NET, run the following command:
Update-Package Aspose.Diagram-Cloud
Using Aspose.Diagram Cloud SDK for .NET
Learn how to use Aspose.Diagram Cloud SDK in C# to create and manage Visio diagrams via REST API. Perfect for .NET developers working with diagram files in formats like VDX
.
This C# example demonstrates how to create a new Visio diagram file using the Aspose.Diagram Cloud SDK. The example fetches an OAuth token for authorization and utilizes the Aspose API to create and manage diagram files in the cloud.
Key Points for Developers
1. OAuth Authentication
This example fetches an OAuth token for authentication, ensuring secure API communication.
2. Cloud Diagram Creation
Use the Aspose.Diagram Cloud API to create diagram files like VDX directly in cloud storage.
3. REST API Integration
Easily integrate this API into your .NET applications to manage Visio diagrams without worrying about platform limitations.
// For complete examples and data files, visit https://github.com/aspose-diagram-cloud/aspose-diagram-cloud-dotnet
using Aspose.Diagram.Cloud.SDK.Api; // Import the Aspose Diagram API
using Aspose.Diagram.Cloud.SDK.Client; // Import the client for handling API calls
using Aspose.Diagram.Cloud.SDK.Model; // Import the model classes
using Aspose.Storage.Cloud.Sdk.Api; // Import the Aspose Storage API
using Aspose.Storage.Cloud.Sdk.Model.Requests; // Import the requests for storage operations
using System;
using System.Collections.Generic;
namespace Aspose.Diagram_Cloud_APIs_Examples
{
class DiagramExamples
{
// Client and configuration for making API calls
protected ApiClient client;
protected Configuration config;
protected static OAuthApi oauth2 = null; // OAuth for authentication
protected string grantType = "client_credentials"; // Grant type for OAuth
protected string clientId = ""; // Your client ID (App SID from https://dashboard.aspose.cloud/)
protected string clientSecret = ""; // Your client secret (App Key from https://dashboard.aspose.cloud/)
protected static string accesstoken; // Access token for making requests
protected string refreshtoken;
static void Main(string[] args)
{
DiagramExamples diagramExamples = new DiagramExamples();
// Call to create a new diagram file in the cloud
diagramExamples.PutCreate();
}
// Method to create a new diagram file using Aspose.Diagram API
private void PutCreate()
{
// Initialize the DiagramFile API with the required configuration
DiagramFileApi instance = new DiagramFileApi(GetConfiguration());
string name = "file_get_1.vdx"; // Name of the diagram file to be created
bool isOverwrite = true; // Overwrite if the file already exists
string folder = null; // Folder location in cloud storage (null to use root)
// Call API to create the diagram file in the cloud
var response = instance.DiagramFilePutCreate(name, folder, isOverwrite);
}
// Method to set up the API configuration with OAuth authentication
private Configuration GetConfiguration()
{
if (oauth2 == null)
{
// Initialize OAuth for token generation
oauth2 = new OAuthApi("https://api.aspose.cloud");
// Get OAuth token using client credentials
var oauth2response = oauth2.OAuthPost(grantType, clientId, clientSecret);
accesstoken = oauth2response.AccessToken; // Store access token
refreshtoken = oauth2response.RefreshToken; // Store refresh token
}
// Set the authorization header with the Bearer token
Dictionary<string, string> headerParameters = new Dictionary<string, string>
{
{ "Authorization", "Bearer " + accesstoken }
};
// Initialize the API client with the authorization header
client = new ApiClient();
config = new Configuration(client, headerParameters);
return config;
}
}
}
Aspose.Diagram Cloud SKDs
GitHub
Package Manager