aspose/diagram-sdk-php

A PHP library for communicating with the Aspose.Diagram Cloud API

24.8.1 2024-08-08 07:38 UTC

README

Packagist Version Packagist PHP Version Support GitHub license

PHP Cloud REST API for Visio Processing

Aspose.Diagram Cloud SDK for PHP helps you develop Visio file manipulation applications with the help of Aspose.Diagram REST API. It allows your applications to work with Microsoft Visio Object Model in order to create the diagrams from scratch or convert diagrams to popular formats including PDF, HTML, images and other Visio formats.

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

Please refer to Developer's Guide to see what else you can achieve.

Read & Write Visio Formats

Microsoft Visio: VSDX, VSX, VTX, VDX, VSSX, VSTX, VSDM, VSSM, VSTM

Save Visio As

Fixed Layout: PDF, XPS Images: JPEG, PNG, BMP, TIFF, SVG, EMF Web: HTML Other: XAML, SWF

Read Visio Formats

Microsoft Visio: VDW, VSD, VSS, VST

New Features in Version 20.3

Added support to draw following objects on a page:

  • Polyline
  • Line
  • Ellipse

Added support to:

  • Set page setting
  • Add new empty page
  • Get pages info

For the detailed notes, please visit Aspose.Diagram Cloud 20.3 Release Notes.

How to use the SDK

The complete source code is available at the GitHub Repository. You can either directly use it in your project via source code or get Packagist distribution (recommended). For more details, please visit our documentation website.

Prerequisites

To use Aspose Cells Cloud SDK you need to register an account with Aspose Cloud and lookup/create App Key and SID at Cloud Dashboard. There is free quota available. For more details, see Aspose Cloud Pricing.

Installation via Composer

diagram-sdk-php is available on Packagist as the diagram-sdk-php package. Run the following command:

composer require aspose/diagram-sdk-php

To use the SDK, use Composer's autoload:

require_once('vendor/autoload.php');

Examples

Please, look at Examples document for basic usage or use the Examples folder for more sophisticated scenarios.

Create New VDX Diagram File in PHP

	// Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).
	$api = new DiagramApi("client_credentials", "MY_CLIENT_ID", "MY_CLIENT_SECRET");

	$result = $api->createNew("sample.vdx");

Aspose.Diagram Cloud SDKs in Popular Languages

Home | Product Page | Documentation | Live Demo | API Reference | Code Samples | Blog | Free Support | Free Trial