REST API to Generate & Recognize Barcodes in any platform

Implement Linear, 2D and postal barcode generation, customization and recognition in multiple image formats on any platform including Amazon S3, Google Cloud, Drive and DropBox.

  Start Free Trial
Aspose.BarCode for Cloud

Aspose.BarCode for Cloud

 
 

Aspose.BarCode for Cloud is a REST API for Linear, 2D and postal barcode generation and recognition in the cloud. API recognizes and generates barcode images in a variety of formats. Barcode REST API allows to specify barcode image attributes like image width, height, border style and output image format in order to customize the generation process. Developers can also specify the barcode type and text attributes such as text location and font styles in order to suit the application requirements.

 

Advanced Barcode REST API Features

 

 

Create & save to image file

 

Recognize from image file

 

Enhance your application workflow by adding barcode functionality

 

Embed in documents to aid traceability

 

Use the recognition functions to drive your real-life work processes

 

Specify barcode image settings

 

Set text attributes

 

.NET Cloud SDK as a wrapper around REST API

 

PHP Cloud SDK for PHP 5.6 or higher

 

Node.js Cloud SDK as a wrapper around REST API

Get Started with Document Processing REST API

It is easy to get started with Aspose.BarCode for Cloud and there is nothing to install. Simply create an account at Aspose for Cloud and get your application information. Once you have the App SID & key, you are ready to give the Aspose.BarCode for Cloud REST API a try with any language - on any platform.

Barcode Generation & Recognition

A barcode is an optical representation of data, which can be read by a machine where it represents information about the item or product it is attached to and helps to quickly read information using a barcode reader. The barcode is represented by parallel lines, geometric patterns or symbols and Aspose.Barcode for Cloud is an suitable API to Generate Barcode images from scratch and to Recognize any existing Barcodes from images. In fact Aspose.Barcode for Cloud API contains all of these characteristics and provides reliable and accurate results both for barcode generation and recognition features using a single API.

Generate a Barcode and save as Image - C#


// Instantiate Aspose BarCode Cloud API SDK
BarcodeApi barcodeApi = new BarcodeApi(Common.APP_KEY, Common.APP_SID, Common.BASEPATH);
// Invoke Aspose.BarCode Cloud SDK API to create barcode and save image to a stream
ResponseMessage apiResponse = barcodeApi.GetBarcodeGenerate("Aspose.BarCode", "QR", "PNG", 96.0f, 96.0f, 0.7f, 2.0f, "NO");
 // Download generated BarCode from API Response
System.IO.File.WriteAllBytes(Common.OUTFOLDER + "sample-barcode"+ "." + "PNG", apiResponse.ResponseStream);

Generate a Barcode and save as Image - Java


// Instantiate Aspose.BarCode Cloud API SDK
BarcodeApi barcodeApi = new BarcodeApi(apiKey, appSID, true);
// invoke Aspose.BarCode Cloud SDK API to create BarCode Image
ResponseMessage apiResponse = barcodeApi.GetBarcodeGenerate("Aspose.BarCode", "QR", "PNG", 96.0f, 96.0f, 0.7f,2.0f, "NO");
// download generated barcode image from api response
InputStream responseStream = apiResponse.getInputStream();
final Path destination = Paths.get("c:\\temp\\"+ "sample-barcode" + "." + "PNG");
Files.copy(responseStream, destination,StandardCopyOption.REPLACE_EXISTING);

Generate a Barcode and save as Image - Objective-C


ASPBarcodeApi *barcodeApi = [[ASPBarcodeApi alloc] init];
[self.barcodeApi getBarcodeGenerateWithCompletionBlock:@"sample-barcode"
    type:@"QR"
    format:@"PNG"
    resolutionX:[NSNumber numberWithFloat:96.0]
    resolutionY:[NSNumber numberWithFloat:96.0]
    dimensionX:[NSNumber numberWithFloat:0.7]
    dimensionY:[NSNumber numberWithFloat:2.0]
    enableChecksum:nil
    completionHandler:^(NSURL *output, NSError *error) {
    NSLog(@"%@", output);
    }];

Generate a Barcode and save as Image - PHP


// Instantiate Aspose BarCode Cloud API SDK
$barcodeApi = new BarcodeApi ();
// invoke Aspose.BarCode Cloud SDK API to create BarCode and get image as a stream
$response = $barcodeApi->GetBarcodeGenerate ("Aspose.BarCode", "QR", "PNG", 96.0, 96.0, 0.7, 2.0, null);
fwrite ( fopen ( "sample-barcode.PNG", 'w' ) or die ( 'cant open file' ), $response );
fclose ( $fh );

Generate a Barcode and save as Image - Ruby


#Instantiate Aspose.BarCode API SDK
@barcodeApi = BarcodeApi.new
opts = {text: 'Aspose.BarCode for Cloud', type: 'datamatrix', format: 'png', resolution_x: 96.0, resolution_y: 96.0, dimension_x: 0.7, dimension_y: 2.0}
#invoke Aspose.BarCode Cloud SDK API to create BarCode and save image to a stream
response = @barcodeApi.get_barcode_generate(opts)
response.close

Generate a Barcode and save as Image - Python


barcodeApi = BarcodeApi(api_client);
#invoke Aspose.BarCode Cloud SDK API to create barcode and get barcode image as a stream
response = barcodeApi.GetBarcodeGenerate(text="Aspose.BarCode", type="QR", format="PNG", resolutionX=96.0, resolutionY=96.0, dimensionX=0.7, dimensionY=2.0, enableChecksum="NO")
#download generated barcode image from api response
outfilename = out_folder + name + "." + format
with open("resultant.png", 'wb') as f:
    for chunk in response.InputStream:
        f.write(chunk)    

Generate a Barcode and save as Image - Perl


my $barcodeApi = AsposeBarCodeCloud::BarcodeApi->new();
# Upload file to aspose cloud storage 
my $response = $storageApi->PutCreate(Path => 'sample-barcode.png', file => $data_path.'sample-barcode.png');
# Invoke Aspose.BarCode Cloud SDK API to create BarCode and get image as a stream                                   
$response = $barcodeApi->GetBarcodeGenerate(name => 'sample-barcode.png', text => 'Aspose.BarCode for Cloud', type => "QR", format => "PNG", resolutionX => 96.0, resolutionY => 96.0, dimensionX => 0.7, dimensionY => 2.0, enableChecksum => 'NO');

Supported Barcode Symbologies

A symbology represents a relationship between the message and the Barcode and it provides all the information to encode and decode a message in the form of a Barcode. Aspose.BarCode for Cloud API supports large number of linear, 1D, 2D and Postal barcode symbologies, and each symbology is a type of Barcode language. Furthermore, Aspose.Barcode for Cloud supports more than 40 Barcode symbologies and specified below is the list of currently supported symbologies:

  • EAN13 (Encode, decode)
  • EAN8 (Encode, decode)
  • UPCA (Encode, decode)
  • EAN13 (Encode, decode)
  • EAN8 (Encode, decode)
  • UPCA (Encode, decode)
  • UPCE (Encode, decode)
  • BooklandEAN (Encode, decode)
  • Interleaved2of5 (Encode, decode)
  • Standard2of5 (SCC14) (Encode, decode)
  • MSI (Encode, decode)
  • Code11 (Encode, decode)
  • Codabar (Encode, decode)
  • EAN14(SCC14) (Encode, decode)
  • SSCC18 (Encode, decode)
  • ITF14 (Encode, decode)
  • Matrix 2 of 5 Standard (Encode, decode)
  • PZN (Encode, decode)
  • USPS OneCode (Encode, decode)
  • Australia Post (Encode, decode)
  • Deutsche Post Identcode (Encode, decode)
  • Deutsche Post Leticode (Encode, decode)
  • EAN13 (Encode, decode)
  • Code128 Standard (Encode, decode)
  • EAN128 (Encode, decode)
  • Code39 Extended (Encode, decode)
  • Code39 Standard (Encode, decode)
  • Code93 Extended (Encode, decode)
  • Code93 Standard (Encode, decode)
  • IATA 2 of 5 (Encode, decode)
  • OPC (Encode, decode)
  • PDF417 (Encode, decode)
  • MacroPDF417 (Encode, decode)
  • DataMatrix (Encode, decode)
  • Aztec (Encode, decode)
  • QR (Encode, decode)
  • Italian Post 25 (Encode, decode)
  • Postnet (Encode, decode)
  • Planet (Encode, decode

Barcode Customization

Barcodes generated by Aspose.Barcode for Cloud can be customized e.g. size, foreground color, background color, specify codetext location, Rotate Barcode with suitable angle, caption (color, location and size) etc. It is ideal for generating barcodes for the most common barcoding application needs.

Language, Platform & Storage Independence

Aspose.BarCode for Cloud can be used with any language or platform which supports HTTP requests and responses. It is completely independent of your operating system, database system or development language. Being a REST API, all responses delivered in JSON or XML format and uses HTTP response codes to indicate API errors.You can also use API with many third party storage providers including Amazon S3, Google Cloud, Google Drive and DropBox.

 

Support and Learning Resources