Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Aspose Cloud Heroku Examples for Java
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
repo/com/saaspose
src/main/java
README.md
pom.xml

README.md

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.

<dependency>
    <groupId>com.saaspose</groupId>
    <artifactId>saaspose.sdk</artifactId>
    <version>1.0.0.1</version>
</dependency>

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
Product.setBaseProductUri(System.getenv("SAASPOSE_URL"));

//specify App Key and App SID
SaasposeApp.setAPPKEY(System.getenv("SAASPOSE_APPKEY"));
SaasposeApp.setAPPSID(System.getenv("SAASPOSE_APPSID"));

// 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);
Something went wrong with that request. Please try again.