New Perl SDK for Barcode Generation and Recognition Using Powerful Aspose.Barcode Cloud APIs

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

Aspose.BarCode for Cloud

Aspose.BarCode for 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.

Aspose.BarCode for Cloud allows developers to quickly and easily add barcode generation and recognition functionality to their applications. Aspose.BarCode for Cloud is a complete solution for barcode generation and recognition. It helps us to generate barcode images from scratch in linear (1D), two dimensional (2D), and postal formats. Generate barcode images in a variety of image formats: JPEG, PNG, GIF, BMP, TIFF and many others. Recognize barcodes from different image types Learn More

What’s new in the latest release

This is a major release for Aspose.BarCode Cloud SDK for Perl. It covers all the Aspose.BarCode Cloud APIs. This SDK provides a complete solution for barcode generation and recognition in perl using powerful Aspose.BarCode Cloud APIs, so you can perform barcode generation and recognition operations in the cloud seamlessly.

Source Code Repository

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

Setup

Aspose.BarCode Cloud SDK for Perl is also available as a 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.BarCode Cloud SDK for Perl – CPAN installation


sudo cpan AsposeBarCodeCloud::BarcodeApi

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 AsposeBarCodeCloud::BarcodeApi;
use AsposeBarCodeCloud::ApiClient;
use AsposeBarCodeCloud::Configuration;

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

$AsposeBarCodeCloud::Configuration::debug = 1;

#Instantiate Aspose.BarCode API SDK
my $barcodeApi = AsposeBarCodeCloud::BarcodeApi->new();

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

#set input file name
my $name = 'sample-barcode';
my $text = 'Aspose.BarCode for Cloud';
my $type = 'datamatrix';
my $format = 'png';

#invoke Aspose.BarCode Cloud SDK API to create barcode and save image to a stream           
my $response = $barcodeApi->GetBarcodeGenerate(text => $text, type => $type, format => $format);

if($response->{'Status'} eq 'OK'){
	#download generated barcode from api response 
	my $output_file = 'C:/temp/'. $name . '.' . $format;	
	write_file($output_file, { binmode => ":raw" }, $response->{'Content'});
}

Aspose.BarCode Cloud API Documentation

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

Aspose.BarCode Cloud SDK for Perl Examples

Aspose.BarCode 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.BarCode for 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.