Aspose.Diagram-Cloud
23.8.0
dotnet add package Aspose.Diagram-Cloud --version 23.8.0
NuGet\Install-Package Aspose.Diagram-Cloud -Version 23.8.0
<PackageReference Include="Aspose.Diagram-Cloud" Version="23.8.0" />
paket add Aspose.Diagram-Cloud --version 23.8.0
#r "nuget: Aspose.Diagram-Cloud, 23.8.0"
// Install Aspose.Diagram-Cloud as a Cake Addin #addin nuget:?package=Aspose.Diagram-Cloud&version=23.8.0 // Install Aspose.Diagram-Cloud as a Cake Tool #tool nuget:?package=Aspose.Diagram-Cloud&version=23.8.0
Cloud REST API to Create & Manage Visio® Diagrams
Aspose.Diagram Cloud SDK for .NET allows developers to create, convert, and manage Microsoft Visio® diagrams directly within their .NET applications without the need for Microsoft Visio® installation. The SDK supports various diagram file formats like VSDX, VDX, PDF, and more, enabling seamless integration with cloud services and REST APIs. Developers can upload, download, and manipulate diagrams across multiple platforms, including web, desktop, and mobile. With OAuth authentication, this SDK ensures secure and flexible document processing in the cloud. Perfect for .NET developers seeking to work with Visio® diagrams in their cloud apps.
Convert Diagram File
- Convert Format: Convert diagram files to different formats using
/diagram/{name}/SaveAs
. - Save Options: Convert diagrams to formats like PDF and retrieve the saved link.
Get Diagram Info
- Retrieve Info: Get diagram details such as page names and shapes via
/diagram/{name}
.
Upload Diagram File
- Upload to Cloud: Upload a diagram file to Cloud Storage using
/diagram/{name}/upload
.
Create Diagram File
- Create New: Create an empty diagram file in a specified format using
/diagram/{name}
.
Manage Files and Storage
- Download File: Download files from Cloud Storage using
/diagram/storage/file/{path}
. - Upload File: Upload files to Cloud Storage using
/diagram/storage/file/{path}
. - Copy File: Copy files to new locations on Cloud Storage using
/diagram/storage/file/copy/{srcPath}
. - Move File: Move files on Cloud Storage using
/diagram/storage/file/move/{srcPath}
. - Delete File: Delete files from Cloud Storage using
/diagram/storage/file/{path}
.
Supported File Formats
Format | Description | Load | Save |
---|---|---|---|
VSDX | MS 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 | VSSX file that has objects to be included in technical drawings | ✔️ | ✔️ |
VSTX | MS Visio Drawing Template | ✔️ | ✔️ |
VSDM | Visio Macro-Enabled Drawing file type | ✔️ | ✔️ |
VSSM | Stores collection of shapes | ✔️ | ✔️ |
VSTM | VSTM that contains both Drawing template and macros | ✔️ | ✔️ |
VDW | Visio Web Drawing File Type | ✔️ | |
VSS | The Visio Stencil File Type | ✔️ | |
VST | VST Template File | ✔️ | |
Saves the drawing in PDF (Portable Document Format) | ✔️ | ||
XPS | Saves the drawing in XPS format | ✔️ | |
XAML | Saves the drawing in XAML format | ✔️ | |
SWF | Saves the drawing in Adobe Flash File | ✔️ | |
SVG | Saves the drawing in Scalable Vector Graphics (An XML-based vector image format) | ✔️ | |
EMF | Saves the drawing in Enhanced MetaFile | ✔️ | |
JPEG | Saves the drawing in JPEG Format | ✔️ | |
PNG | Saves the drawing in PNG Format | ✔️ | |
BMP | Saves the drawing in BMP Format | ✔️ | |
TIFF | Saves the drawing as Single or Multi-Page TIFF Image | ✔️ | |
HTML | Saves the drawing in HTML Format | ✔️ |
Supported Platforms
Platform | Description |
---|---|
.NET | Supported via REST API in .NET applications. |
Java | Supported via REST API in Java applications. |
PHP | Supported via REST API in PHP applications. |
Ruby | Supported via REST API in Ruby applications. |
Python | Supported via REST API in Python applications. |
Node.js | Supported via REST API in Node.js applications. |
Web | Accessible from 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
Create and Manage Diagrams with 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
Tags
Visio® Diagram API | Cloud REST API | Aspose.Diagram Cloud | Visio® to PDF Conversion | Visio® File Processing | Diagram File Management | OAuth Authentication | Visio® File Formats | Visio® Diagrams in Cloud | REST API for .NET | Diagram Creation API | File Conversion API | File Upload API | File Download API | Cross-Platform Diagram API | Document Storage Integration | Visio® File Upload | Diagram Metadata Extraction | File Conversion to PDF | Visio® File Formats Support
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net452 is compatible. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
- NewtonSoft.Json (>= 10.0.2)
- RestSharp (>= 106.2.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.