Browse our Products

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.


Docs Swagger Examples Blog Release Notes Support Dashboard

Installation

The package is available at pypi.org and it can be installed via pip by executing following command:

pip install asposediagramcloud

PyPI - Version PyPI - Downloads Python-asposeCloud


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 Format

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.

Get Diagram Information

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}.

Supported File Formats

FormatDescriptionLoadSave
VSDXMicrosoft Visio Drawing that uses OPC (Open Packaging Conventions)✔️✔️
VDXDrawing or chart created with Microsoft Visio✔️✔️
VSDVisio Drawing (Vector Graphics File Format)✔️
VSXVisio Stencil XML file type✔️✔️
VTXXML for Visio (Template File)✔️✔️
VSSXVisio Stencil file with objects for technical drawings✔️✔️
VSTXMicrosoft Visio Drawing Template✔️✔️
VSDMVisio Macro-Enabled Drawing file type✔️✔️
VSSMStores a collection of shapes✔️✔️
VSTMVisio Drawing Template with macros✔️✔️
VDWVisio Web Drawing File Type✔️
VSSVisio Stencil File Type✔️
VSTVST Template File✔️
PDFPortable Document Format✔️
XPSXML Paper Specification format✔️
XAMLXML Application Markup Language✔️
SWFAdobe Flash File✔️
SVGScalable Vector Graphics (XML-based vector image)✔️
EMFEnhanced MetaFile✔️
JPEGJoint Photographic Experts Group format✔️
PNGPortable Network Graphics format✔️
BMPBitmap Image Format✔️
TIFFSingle or Multi-Page TIFF Image✔️
HTMLHyperText Markup Language✔️

Supported Platforms

PlatformDescription
PythonFully supported via REST API in Python applications.
.NETSupported through REST API in .NET applications.
JavaSupported via REST API in Java applications.
PHPAccessible via REST API in PHP applications.
RubyAvailable via REST API in Ruby applications.
Node.jsAccessible via REST API in Node.js applications.
WebUsable in web-based platforms via REST API.
DesktopCompatible with desktop environments via REST API.
MobileSupported on mobile platforms through REST API.
CloudWorks 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

GitHub GitHub GitHub GitHub GitHub GitHub GitHub GitHub GitHub

Package Manager

NuGet Maven Composer PyPI RubyGems Node.js Android Perl Swift


Docs Swagger Examples Blog Release Notes Support Dashboard


 English