1. Products
  2.   Presentation
  3.   Perl
  4.   Aspose.Slides Cloud SDK for Perl

Aspose.Slides Cloud SDK for Perl


Swift SDK to Read, Write & Export Presentations

Perl PowerPoint PPT/PPTX Presentations API that enables Software Engineers to Create, Edit, Merge, Protect, Manipulate & Convert Presentation files.

Aspose.Slides Cloud is a powerful platform for working with PowerPoint presentations in the cloud. While Aspose.Slides has traditionally supported languages like Java, .NET, Python, Ruby, and PHP, there's now exciting news for Perl developers. Aspose.Slides Cloud SDK for Perl is here, allowing software developers to integrate the SDK into your Perl applications seamlessly. It is a software development kit (SDK) that allows software developers to work with Microsoft PowerPoint and OpenOffice presentation files in the cloud using the Perl programming language.

Aspose.Slides Cloud SDK for Perl is very stable and has incorporated a wide range of basic as well as advanced features for working with presentations, such as creating empty presentations, merging multiple presentations, splitting presentations, exporting a particular slide as an image, inserting or removing slides, copying slides, extracting information from slides, converting slides to images, replacing text in presentations, inserting shapes, extract shapes from a particular slide, deleting background of slides and many more.

Aspose.Slides Cloud SDK for Perl is a REST API designed explicitly for PowerPoint presentation creation, management, manipulation and conversion to other support file formats in the cloud. With just a couple of lines of code software developers can convert PowerPoint documents into various other formats like TIFF, PDF, PPTX, XPS and PPT etc. The REST API is platform-independent and can be easily integrated with many other available cloud services. Whether you need to convert presentations, manipulate slides, or perform any other PowerPoint-related task, Aspose.Slides Cloud has got you covered.

Previous Next

Getting Started with Aspose.Slides Cloud SDK for Perl

To utilize Aspose.Slides Cloud SDK for Perl, you must have Perl installed on your system. The recommended way to install the SDK is using Comprehensive Perl Archive Network (CPAN). Please use the following command for a smooth installation.

Install Aspose.Slides Cloud SDK for Perl via CPAN

 cpan ASPOSE/AsposeSlidesCloud-SlidesApi-22.06.tar.gz
You can also download it directly from Aspose product release page.

Create & Manipulate Presentations via Perl

Aspose.Slides Cloud SDK for Perl has included very powerful support for generating and manipulating new presentation documents in various file formats with just a couple of lines of Perl code. The API allows to work with some leading file formats, such as PPT, PPTX, PPS, PPSX, PPTM, PPSM, POTX, POTM, ODP, OTP, FODP and many others. There are several important features part of the API for working with presentations files, such as insert text to a slide, adding new slides, removing unwanted slides, and rearranging slides within a presentation, and many more. The following example shows how to extract slide from an available presentation inside Perl applications. The following example shows how to replaces text in a presentation using Perl commands.

How to Replaces Text in a Presentation using Perl API?

use AsposeSlidesCloud::Configuration;
use AsposeSlidesCloud::SlidesApi;
use AsposeSlidesCloud::Object::PortionFormat;

my $config = AsposeSlidesCloud::Configuration->new();
$config->{app_sid} = "MyClientId";
$config->{app_key} = "MyClientSecret";

my $slides_api = AsposeSlidesCloud::SlidesApi->new(config => $config);

# Replace the "banana" for "orange", in orange color.
my $portion_format = AsposeSlidesCloud::Object::PortionFormat->new();
$portion_format->{font_color} = "#FFFFA500";

my %parameters = (name => "MyPresentation.pptx", old_value => "banana", new_value => "orange", portion_format => $portion_format, folder => "MyFolder");

Presentation Conversion inside Perl Apps

Aspose.Slides Cloud SDK for Perl has included very powerful support for loading and converting PowerPoint and OpenOffice presentations to other supported file formats. The SDK allows to convert presentations to/from some popular documents file formats, such as PPT, POT, PPS, PPTX, POTX, PPSX, PPTM, ODP, OTP, TIFF, PDF, XPS, JPEG, PNG, GIF, BMP, SVG, SWF, HTML and many more. Software developers can also export a particular slide and set to slides to other supported file formats. The following example demonstrates how Perl developers can load and convert a PowerPoint document to PDF format inside their own application.

How to Load & Convert a PowerPoint Document to PDF via Perl API?

 use File::Slurp;

	use AsposeSlidesCloud::Configuration;
	use AsposeSlidesCloud::SlidesApi;

	my $config = AsposeSlidesCloud::Configuration->new();
	$config->{app_sid} = "MyClientId";
	$config->{app_key} = "MyClientSecret";
	my $api = AsposeSlidesCloud::SlidesApi->new(config => $config);
	my $file = read_file("MyPresentation.pptx", { binmode => ':raw' });
	my %params = ('format' => 'pdf', 'document' => $file);
	my $result = $api->convert(%params);
	my $pdf = "MyPresentation.pdf";
	open my $fh, '>>', $pdf;
	binmode $fh;
	print $fh $result;
	close $fh;

Work With Slides in Presentations via Perl

Aspose.Slides Cloud SDK for Perl makes it easy for software developers to handle slides inside presentation documents using Perl API. Software developers can work with individual slides, including features like adding, deleting, and updating slide properties. This allows for fine-grained control over your presentations. There are several other features part of the API for working with presentations, such as copy slides, move slide to a new location, manage slide comments, manage headers and footers inside a slide, work with background, extract slide from a presentation and many more. The following example shows how to extract a slide from a PowerPoint presentation using Perl code.

How to Extract a Slide from a PowerPoint Presentation via Perl API?

using Aspose.Slides.Cloud.Sdk;
using Aspose.Slides.Cloud.Sdk.Model;
using System.IO;

class Application
    static void Main(string[] args)
        SlidesApi api = new SlidesApi("MyClientId", "MyClientSecret");

        // Set options for the output TIFF image.
        var tiffOptions = new TiffExportOptions
            PixelFormat = TiffExportOptions.PixelFormatEnum.Format24bppRgb,
            Width = 540,
            Height = 380

        // Extract the third slide and get it in TIFF format.
        using var tiffStream = api.DownloadSlide("MyPresentation.pptx", 3, SlideExportFormat.Tiff, tiffOptions);
        // Save the TIFF image to a file.
        using var outputStream = File.OpenWrite("slide_3.tiff");

Format & Style Presentation via Perl API

Aspose.Slides Cloud SDK for Perl has provided complete support for applying formatting and styling to presentations inside Perl applications. The SDK provides tools to format and style text, shapes, and slides. You can apply fonts, colors, alignments, borders, and other styling options to enhance the visual appeal of your presentations. Moreover, it also supports various PowerPoint features, such as transitions, animations, and slide notes. You can create dynamic and engaging presentations using these features.