Cloud SDK enables your Perl cloud apps to Create & Convert Visio Diagrams from within your own apps without installing Microsoft Visio.
- 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.
Microsoft Visio: VSDX, VSX, VTX, VDX, VSSX, VSTX, VSDM, VSSM, VSTM
Fixed Layout: PDF, XPS Images: JPEG, PNG, BMP, TIFF, SVG, EMF Web: HTML Other: XAML, SWF
Microsoft Visio: VDW, VSD, VSS, VST
- Added support to:
- Set page settings
- Add an empty page
- Get pages information
- Added support to draw following objects on a page:
- Polyline
- Line
- Ellipse
For the detailed notes, please visit Aspose.Diagram Cloud 20.3 Release Notes.
The Perl Swagger Codegen project builds a library of Perl modules to interact with a web service defined by a OpenAPI Specification. See below for how to build the library.
This module provides an interface to the generated library. All the classes, objects, and methods (well, not quite all, see below) are flattened into this role.
package MyApp;
use Moose;
with 'AsposeDiagramCloud::Role';
package main;
my $api = MyApp->new({ tokens => $tokens });
my $pet = $api->get_pet_by_id(pet_id => $pet_id);
In the normal case, the OpenAPI Spec will describe what parameters are required and where to put them. You just need to supply the tokens.
my $tokens = {
# basic
username => $username,
password => $password,
# oauth
access_token => $oauth_token,
# keys
$some_key => { token => $token,
prefix => $prefix,
in => $in, # 'head||query',
},
$another => { token => $token,
prefix => $prefix,
in => $in, # 'head||query',
},
...,
};
my $api = MyApp->new({ tokens => $tokens });
Note these are all optional, as are prefix
and in
, and depend on the API you are accessing. Usually prefix
and in
will be determined by the code generator from the spec and you will not need to set them at run time. If not, in
will default to 'head' and prefix
to the empty string.
The tokens will be placed in a LAsposeDiagramCloud::Configuration instance as follows, but you don't need to know about this.
$cfg->{username}
- String. The username for basic auth.
$cfg->{password}
- String. The password for basic auth.
$cfg->{api_key}
- Hashref. Keyed on the name of each key (there can be multiple tokens).
$cfg->{api_key} = { secretKey => 'aaaabbbbccccdddd', anotherKey => '1111222233334444', };
$cfg->{api_key_prefix}
- Hashref. Keyed on the name of each key (there can be multiple tokens). Note not all api keys require a prefix.
$cfg->{api_key_prefix} = { secretKey => 'string', anotherKey => 'same or some other string', };
$cfg->{access_token}
- String. The OAuth access token.
To load the API packages:
use AsposeDiagramCloud::DiagramFileApi;
use AsposeDiagramCloud::OAuthApi;
To load the models:
use AsposeDiagramCloud::Object::DiagramModel;
use AsposeDiagramCloud::Object::Link;
use AsposeDiagramCloud::Object::PageModel;
use AsposeDiagramCloud::Object::SaaSposeResponse;
use AsposeDiagramCloud::Object::SaveResult;
use AsposeDiagramCloud::Object::SharpModel;
use AsposeDiagramCloud::Object::DiagramResponse;
use AsposeDiagramCloud::Object::SaveResponse;
# Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).
my $config = AsposeDiagramCloud::Configuration->new(app_sid => 'MY_CLIENT_ID', app_key => 'MY_CLIENT_SECRET');
my $client = AsposeDiagramCloud::ApiClient->new( $config);
my $diagram_api = AsposeDiagramCloud::DiagramApi->new($client);
my $result = $diagram_api->diagram_name_put(name => 'sample.vdx', folder => 'output', is_overwrite => 'true', storage => 'My_Storage_Name');
.NET | Java | PHP | Python | Ruby | Node.js | Android | Perl | Swift |
---|---|---|---|---|---|---|---|---|
GitHub | GitHub | GitHub | GitHub | GitHub | GitHub | GitHub | GitHub | GitHub |
NuGet | Maven | Composer | PIP | GEM | NPM | Maven | CPAN | POD |
Home | Product Page | Documentation | Live Demo | API Reference | Code Samples | Blog | Free Support | Free Trial