Aspose.Words Cloud SDK for Perl – Solution for Integrating Microsoft Word OpenOffice document with Perl using Powerful Aspose.Words Cloud APIs

Share on FacebookTweet about this on TwitterShare on LinkedIn

Aspose.Words Cloud

Aspose.Words Cloud’s platform independent document manipulation API is a true REST API that can be used with any language: .NET, Java, Perl, PHP, Ruby, Rails, Python, Node.js and many more. You can use it with any platform — web, desktop, mobile, and cloud.

With Aspose.Words Cloud you can modify and convert documents on the cloud. It supports DOC, DOCX, OOXML, RTF, HTML, OpenDocument, PDF, XPS, EPUB and many other formats. Aspose.Words Cloud is a complete solution for performing any operation you can wish to perform on a document in the cloud. Learn More

What’s new in the latest release

This is a new release for Aspose.Words Cloud SDK for Perl. It covers all the Aspose.Words Cloud APIs. This SDK provides a complete one-stop solution for integrating with powerful Aspose.Words Cloud APIs with Perl, so you can perform any operation on a document in the cloud with minimum effort.

Source Code Repository

Complete source code of this release of Aspose.Words Cloud SDK for Perl is freely available on your favorite GitHub and Codeplex repositories.

.

Setup

Aspose.Words Cloud SDK for Perl is also available as released package in the CPAN (Perl Archive Network). You can bypass GitHub source code repository and depend directly on the released package by installing from CPAN:

Aspose.Words Cloud SDK for Perl – CPAN installation


sudo cpan AsposeWordsCloud::WordsApi
You can also manually build the module by downloading the code and executing the following in the root directory of the download:

perl Build.PL
./Build
./Build test
./Build install

Data

In order to manipulate any files, you first need to upload them to the Aspose cloud storage or 3rd party cloud storage using Aspose.Storage Cloud SDK for Perl.

Quick SDK Tutorial


use lib 'lib';
use strict;
use warnings;
use File::Slurp; # From CPAN

use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;

use AsposeWordsCloud::WordsApi;
use AsposeWordsCloud::ApiClient;
use AsposeWordsCloud::Configuration;

$AsposeWordsCloud::Configuration::app_sid = 'XXX';
$AsposeWordsCloud::Configuration::api_key = 'XXX';

$AsposeStorageCloud::Configuration::app_sid = $AsposeWordsCloud::Configuration::app_sid;
$AsposeStorageCloud::Configuration::api_key = $AsposeWordsCloud::Configuration::api_key;

#Instantiate Aspose.Storage API SDK 
my $storageApi = AsposeStorageCloud::StorageApi->new();

#Instantiate Aspose.Words API SDK
my $wordsApi = AsposeWordsCloud::WordsApi->new();

my $data_path = './data/';

my $filename = 'SampleWordDocument';
my $name = $filename . '.docx';
my $format = 'pdf';

#upload file to aspose cloud storage 
my $response = $storageApi->PutCreate(Path => $name, file => $data_path.$name);

#invoke Aspose.Words Cloud SDK API to convert words document to required format 
$response = $wordsApi->PutConvertDocument(format=> $format, file => $data_path.$name);
	
#download output document from response 
my $output_file = 'C:/temp/'. $filename . '.' . $format;
write_file($output_file, { binmode => ":raw" }, $response->{'Content'});

Aspose.Words Cloud API Documentation

Aspose.Words Cloud Documentation is available to guide developers to get familiar with the specific resources and operations within the Aspose.Words Cloud REST API.

Aspose.Words Cloud SDK for Perl Examples

Aspose.Words Cloud SDK for Perl Examples are also available to guide developers to get familiar with SDK and its usage to invoke resources and operations using the Aspose.Words Cloud REST API. Please see the SDK examples of following categories.

Start a Free Trial Today

Start a free trial today – all you need is to sign up with the Aspose Cloud service. Once you have signed up, you are ready to try the powerful file processing features offered by Aspose Cloud.