Aspose Cloud Heroku Examples for Java
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Aspose Cloud Heroku Examples for Java

Saaspose is an add-on for providing document automation as a service. Aspose for Cloud is the easiest API to create, convert and automate documents in the cloud.

Aspose for Cloud's REST API allows you to add support for all kinds of common tasks to your Heroku web app: document assembly, mail merge, reporting, file conversion, text and image extraction, metadata removal, barcode generation and recognition, email tracking and creation, targeting content to different devices.

Aspose for Cloud is accessible via an API and has supported client libraries for .NET, Java, Ruby and PHP.

Using with Java

Aspose for Cloud has an SDK for Java which implements the common features like authentication, send request, receive response, storage and other features.

Add the Aspose SDK for Java as a dependency in your pom.xml file.


Complete pom.xml file can be downloaded from here.

The sample code to create a barcode is given below.

// Create the barcode and save to local disk
//specify product URI

//specify App Key and App SID

// Create an instance of BarCodeBuilder class
DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
Date date = new Date();
String codetext = "Heroku test -  " + dateFormat.format(date);
BarCodeBuilder builder = new BarCodeBuilder(codetext, BarCodeType.Pdf417);
// Save to server
GenerationResponse response = builder.Save(
	SaveLocation.Local, "barcode.png", ImageFormat.PNG);