Aspose.PDF Cloud SDK for Perl – Solution to Manipulate PDF Portable Document Format in Perl Using Powerful Aspose.PDF Cloud APIs

Aspose.PDF Cloud

Aspose.PDF 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.PDF Cloud you can work with all aspects of PDF (portable document format) file: read, write, convert, split, merge and many more options to manipulate PDF documents. Aspose.PDF Cloud is a complete solution for performing any manipulation you can wish to perform on PDF files in the cloud. Learn More What’s new in the latest release This is a major release for Aspose.PDF Cloud SDK for Perl. It covers all the Aspose.PDF Cloud APIs. This SDK provides a complete solution to manipulate PDF (Portable Document Format) in Perl using powerful Aspose.PDF Cloud APIs, so you can perform any operation on PDF files in the cloud seamlessly. Source Code Repository Complete source code of this release of Aspose.PDF Cloud SDK for Perl is freely available on your favorite GitHub and Codeplex repositories. Release Package Setup Aspose.PDF 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 npm: Aspose.PDF Cloud SDK for Perl – CPAN installation

sudo cpan AsposePDFCloud::PDFApi
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 AsposePDFCloud::PDFApi;
use AsposePDFCloud::ApiClient;
use AsposePDFCloud::Configuration;

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

$AsposePDFCloud::Configuration::debug = 1;
$AsposeStorageCloud::Configuration::app_sid = $AsposePDFCloud::Configuration::app_sid;
$AsposeStorageCloud::Configuration::api_key = $AsposePDFCloud::Configuration::api_key;

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

#Instantiate Aspose.PDF API SDK
my $pdfApi = AsposePDFCloud::PDFApi->new();

my $data_path = '../data/';

#set input file name
my $filename = 'Sample';
my $name = $filename . '.pdf';
my $format = "tiff";

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

#invoke Aspose.PDF Cloud SDK API to convert PDF to TIFF                           
$response = $pdfApi->GetDocumentWithFormat(name=>$name, format=> $format);

if($response->{'Status'} eq 'OK'){
	#save converted format file from response stream
    my $output_file = 'C:/temp/'. $filename . '.' . $format;
	write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}
Aspose.PDF Cloud API Documentation Aspose.PDF Cloud Documentation is available to guide developers to get familiar with the specific resources and operations within the Aspose.PDF Cloud REST API. Aspose.PDF Cloud SDK for Perl Examples Aspose.PDF 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.PDF 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.