Skip to content

Commit

Permalink
Added code related to licensing and updated the relevant page. Correc…
Browse files Browse the repository at this point in the history
…ted links between pages and improved the product description along with the supported formats list.
  • Loading branch information
alex-grinin committed Jan 27, 2025
1 parent 9d18438 commit 77a4322
Show file tree
Hide file tree
Showing 5 changed files with 252 additions and 154 deletions.
48 changes: 34 additions & 14 deletions _index.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,28 +41,48 @@ The links to some useful resources can be found below.

![Aspose.BarCode for Java Product Logo](home_2.png)

Welcome to Aspose.BarCode for Java
Welcome to ***Aspose.BarCode for Java***

Aspose.BarCode for Java is a robust and reliable barcode generation and recognition component, written in Java, it allows developers to quickly and easily add barcode generation and recognition functionality to their Java applications.
***Aspose.BarCode for Java*** is a robust and reliable barcode generation and recognition component, written in Java, it allows developers to quickly and easily add barcode generation and recognition functionality to their Java applications.

Aspose.BarCode for Java supports the most established barcode standards and barcode specifications. It can export to multiple image formats including: BMP, GIF, JPEG, PNG, and TIFF.
***Aspose.BarCode for Java*** supports the most established barcode standards and barcode specifications.
It can export to multiple image formats:
- BMP
- GIF
- JPEG
- PNG
- TIFF
- TIFF_IN_CMYK
- EMF
- SVG
- PDF

This section introduces Aspose.BarCode for Java and its features, gives examples as case studies, and lists some customers who choose to use Aspose.BarCode in their solutions. This section also includes information about Aspose.BarCode for Java [installation](https://docs.aspose.com/barcode/java/installation/), [evaluation](https://docs.aspose.com/barcode/java/licensing/) and [licensing](https://docs.aspose.com/barcode/java/licensing/).
Why Choose ***Aspose.BarCode for Java*** to Manage Barcodes?

***Aspose.BarCode for Java*** offers a versatile and powerful solution for managing barcodes.
One key advantage is the ability to adjust barcode recognition engine variables, allowing you to balance reading quality and speed.
One of its standout features is the ability to configure barcode recognition engine variables, allowing you to strike the perfect balance between reading quality and speed. This flexibility even enables the recognition of severely corrupted barcodes, ensuring reliability in challenging scenarios.
The library also provides extensive customization options for barcode appearance and parameters. You can adjust settings such as background color, bar color, rotation angle, X-dimension, image quality, resolution, captions, size, and more, tailoring the output to fit your specific requirements.
Furthermore, ***Aspose.BarCode for Java*** supports a wide range of symbologies and offers robust functionality for both barcode generation and recognition. This makes it easy to implement barcode solutions that seamlessly integrate into your business processes, meeting your unique operational needs.


This section introduces Aspose.BarCode for Java and its features, gives examples as case studies, and lists some customers who choose to use Aspose.BarCode in their solutions. This section also includes information about Aspose.BarCode for Java <a href="/barcode/java/installation/" target="_blank">installation</a>, <a href="/barcode/java/licensing/" target="_blank">evaluation and licensing</a>.

{{% /alert %}}

Following are the links to some useful resources you may need to accomplish your tasks.

- [Aspose.BarCode for Java Online Documentation](/barcode/java/)
- [Aspose.BarCode for Java Features](https://docs.aspose.com/barcode/java/product-overview/)
- [Aspose.BarCode for Java Release Notes](https://docs.aspose.com/barcode/java/release-notes/)
- [Aspose.BarCode for Java Product Page](https://products.aspose.com/barcode/java)
- [Install Aspose.BarCode for Java from Maven Repository](https://docs.aspose.com/barcode/java/installation/)
- [Download Aspose.BarCode for Java](https://downloads.aspose.com/barcode/java)
- [Download Code Examples from GitHub Repository](https://github.com/aspose-barcode/Aspose.Barcode-for-Java)
- [Aspose.BarCode for Java API Reference Guide](https://reference.aspose.com/java/barcode)
- [Aspose.BarCode for Java Free Support Forum](https://forum.aspose.com/c/barcode)
- [Aspose.BarCode for Java Paid Support Helpdesk](https://helpdesk.aspose.com/)
- <a href="/barcode/java/" target="_blank">Aspose.BarCode for Java Online Documentation</a>
- <a href="/barcode/java/product-overview/" target="_blank">Aspose.BarCode for Java Features</a>
- <a href="/barcode/java/release-notes/" target="_blank">Aspose.BarCode for Java Release Notes</a>
- <a href="https://products.aspose.com/barcode/java" target="_blank">Aspose.BarCode for Java Product Page</a>
- <a href="/barcode/java/installation/" target="_blank">Install Aspose.BarCode for Java from Maven Repository</a>
- <a href="https://downloads.aspose.com/barcode/java" target="_blank">Download Aspose.BarCode for Java</a>
- <a href="https://github.com/aspose-barcode/Aspose.Barcode-for-Java" target="_blank">Download Code Examples from GitHub Repository</a>
- <a href="https://reference.aspose.com/java/barcode" target="_blank">Aspose.BarCode for Java API Reference Guide</a>
- <a href="https://forum.aspose.com/c/barcode" target="_blank">Aspose.BarCode for Java Free Support Forum</a>
- <a href="https://helpdesk.aspose.com/" target="_blank">Aspose.BarCode for Java Paid Support Helpdesk</a>


## Aspose.BarCode for C++
{{% alert color="primary" %}}
Expand Down
85 changes: 47 additions & 38 deletions java/_index.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,47 @@
---
title: Aspose.BarCode for Java
description: Aspose.BarCode for Java API allows developers to quickly and easily add barcode generation and recognition functionality to their Java applications.
type: docs
weight: 20
feedback: BARCODECOM
url: /java/
is_root: true
---

{{% alert color="primary" %}}

![todo:image_alt_text](home_1.png)

**Welcome to Aspose.BarCode for Java**

Aspose.BarCode for Java is a robust and reliable barcode generation and recognition component written in Java. It allows developers to quickly and easily add barcode generation and recognition functionality to their Java applications.

Aspose.BarCode for Java supports the most established barcode standards and barcode specifications. It can export to multiple image formats, including BMP, GIF, JPEG, PNG, and TIFF.

This section introduces Aspose.BarCode for Java and its features, gives examples as case studies and lists some customers who choose to use Aspose.BarCode in their solutions. This section also includes information about Aspose.BarCode for Java [installation](/barcode/java/installation/), [evaluation](/barcode/java/installation/) and [licensing](/barcode/java/licensing/).

{{% /alert %}}

**Aspose.BarCode for Java Resources**
The following are the links to some useful resources you may need to accomplish your tasks.

- [Aspose.BarCode for Java Online Documentation](/barcode/java/)
- [Aspose.BarCode for Java Features](/barcode/java/product-overview/)
- [Aspose.BarCode for Java Release Notes](https://releases.aspose.com/barcode/java/release-notes/)
- [Aspose.BarCode for Java Product Page](https://products.aspose.com/barcode/java)
- [Aspose.BarCode for Java from Maven Repository](https://releases.aspose.com/java/repo/com/aspose/aspose-barcode/)
- [Install Aspose.BarCode for Java from Maven Repository](/barcode/java/installation/)
- [Download Aspose.BarCode for Java](https://releases.aspose.com/barcode/java/)
- [Download Code Examples from GitHub Repository](https://github.com/aspose-barcode/Aspose.Barcode-for-Java)
- [Aspose.BarCode for Java API Reference Guide](https://reference.aspose.com/barcode/java/)
- [Aspose.BarCode for Java Free Support Forum](https://forum.aspose.com/c/barcode)
- [Aspose.BarCode for Java Paid Support Helpdesk](https://helpdesk.aspose.com/)
---
title: Aspose.BarCode for Java
description: Aspose.BarCode for Java API allows developers to quickly and easily add barcode generation and recognition functionality to their Java applications.
type: docs
weight: 20
feedback: BARCODECOM
url: /java/
is_root: true
---

{{% alert color="primary" %}}

![todo:image_alt_text](home_1.png)

**Welcome to Aspose.BarCode for Java**

Aspose.BarCode for Java is a robust and reliable barcode generation and recognition component written in Java. It allows developers to quickly and easily add barcode generation and recognition functionality to their Java applications.

Aspose.BarCode for Java supports the most established barcode standards and barcode specifications. It can export to multiple image formats:
- BMP
- GIF
- JPEG
- PNG
- TIFF
- TIFF_IN_CMYK
- EMF
- SVG
- PDF

This section introduces Aspose.BarCode for Java and its features, gives examples as case studies, and lists some customers who choose to use Aspose.BarCode in their solutions. This section also includes information about Aspose.BarCode for Java <a href="/barcode/java/installation/" target="_blank">installation</a>, <a href="/barcode/java/licensing/" target="_blank">evaluation and licensing</a>.

{{% /alert %}}

**Aspose.BarCode for Java Resources**
The following are the links to some useful resources you may need to accomplish your tasks.

- <a href="/barcode/java/product-overview/" target="_blank">Aspose.BarCode for Java Features</a>
- <a href="https://releases.aspose.com/barcode/java/release-notes/" target="_blank">Aspose.BarCode for Java Release Notes</a>
- <a href="https://products.aspose.com/barcode/java" target="_blank">Aspose.BarCode for Java Product Page</a>
- <a href="https://releases.aspose.com/java/repo/com/aspose/aspose-barcode/" target="_blank">Aspose.BarCode for Java from Maven Repository</a>
- <a href="/barcode/java/installation/" target="_blank">Install Aspose.BarCode for Java from Maven Repository</a>
- <a href="https://releases.aspose.com/barcode/java/" target="_blank">Download Aspose.BarCode for Java</a>
- <a href="https://github.com/aspose-barcode/Aspose.Barcode-for-Java" target="_blank">Download Code Examples from GitHub Repository</a>
- <a href="https://reference.aspose.com/barcode/java/" target="_blank">Aspose.BarCode for Java API Reference Guide</a>
- <a href="https://forum.aspose.com/c/barcode" target="_blank">Aspose.BarCode for Java Free Support Forum</a>
- <a href="https://helpdesk.aspose.com/" target="_blank">Aspose.BarCode for Java Paid Support Helpdesk</a>

106 changes: 81 additions & 25 deletions java/getting-started/licensing/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,42 +7,98 @@ url: /java/licensing/
aliases:
- /java/1-3-2-apply-aspose-license/
---

## **Overview**
The evaluation mode of ***Aspose.BarCode for Java*** allows generating barcode images without restrictions. However, a watermark will be displayed on the resulting barcode image (words “Aspose”). The unlicensed version can be used to read barcodes of all supported types. Please note that only *Code 39* can be decoded without limitations; as a result of reading barcodes corresponding to other types, 30% of decoded text will be masked with " * ". All other actions with barcodes using ***Aspose.BarCode for Java*** need setting a license. After purchasing a license, you will get access to the whole functionality of the library and the ability to perform barcode generation and reading without limitations and watermark placement.

The evaluation mode of ***Aspose.BarCode for Java*** allows generating barcode images without restrictions. However, a watermark will be displayed on the resulting barcode image (words “Aspose”). The unlicensed version can be used to read barcodes of all supported types. Please note that only *Code 39* can be decoded without limitations; as a result of reading barcodes corresponding to other types, 30% of decoded text will be masked with " * ". All other actions with barcodes using ***Aspose.BarCode for Java*** need setting a license. After purchasing a license, you will get access to the whole functionality of the library and the ability to perform barcode generation and reading without limitations and watermark placement.

## **How to Obtain License**
If you want to try the full version of ***Aspose.BarCode for Java***, you can try a temporary license that is valid for 30 days. Please read [How to get a Temporary License?](https://purchase.aspose.com/temporary-license) for more information. To use the library without limitations, purchasing a commercial license is necessary. You can get all information about pricing and conditions [here](https://purchase.aspose.com/admin/pricing/barcode/java).

If you want to try the full version of ***Aspose.BarCode for Java***, you can try a temporary license that is valid for 30 days. Please read [How to get a Temporary License?](https://purchase.aspose.com/temporary-license) for more information. To use the library without limitations, purchasing a commercial license is necessary. You can get all information about pricing and conditions [here](https://purchase.aspose.com/admin/pricing/barcode/java).

Each Aspose license enables a one-year subscription with free upgrades to any new releases or fixes that are published during this period. Technical support is provided for free unlimitedly both to licensed and evaluation users.

## **How to Install License**
The license is a plain-text XML file that includes details such as the product name, the number of developers it is licensed for, subscription expiry date, and others. The license file is signed digitally, so it must not be modified in any way. Adding even an extra line break into the license file will result in invalidating the license. You need to activate the license to enable the unlimited use of library functions. You only have to enable the license once per application (or process).

The license can be loaded from a stream or file using the following locations:

1. Explicit path
1. Folder that comprises Aspose.BarCode.jar

You need to call the *setLicense* method of class [*License*](https://reference.aspose.com/barcode//java/com.aspose.barcode/license) to apply the license to the component. The easiest way to activate the license is to place the license file into the same folder as Aspose.BarCode.jar and specify the license file name without a path, as shown in the following example.

### **Configure License From File**
In this example, Aspose.BarCode will attempt to find the license file in the folder that contains JARs of your application.

{{< gist "aspose-com-gists" "9dea2dd38be50330a824dd05da062a97" "Examples-src-main-java-com-aspose-barcode-examples-ApplyALicense-ApplyALicense.java" >}}

### **Configure License From Stream**
In this example, the license is initialized from a stream.

{{< gist "aspose-com-gists" "9dea2dd38be50330a824dd05da062a97" "Examples-src-main-java-com-aspose-barcode-examples-ApplyLicenseFromStream-ApplyLicenseFromStream.java" >}}

The license is a plain-text XML file that includes details such as the product name, the number of developers it is licensed for, subscription expiry date, and others. The license file is signed digitally, so it must not be modified in any way. Adding even an extra line break into the license file will result in invalidating the license. You need to activate the license to enable the unlimited use of library functions. You only have to enable the license once per application (or process).

The license can be loaded from a stream or file.
You need to call the *setLicense* method of class [*License*](https://reference.aspose.com/barcode//java/com.aspose.barcode/license) to apply the license to the component.

### **Using Singleton for License Initialization**

The most effective way to implement the license is through lazy initialization using the Singleton pattern in your code.
Below, we demonstrate how to achieve this with just a few additional lines of code in your project.
{{< highlight java >}}
public class LicenseSingleton
{
private static LicenseSingleton instance;
private LicenseSingleton(String pathToLicenseFile)
{
try
{
// Initialize the license
com.aspose.barcode.License license = new com.aspose.barcode.License();
license.setLicense(pathToLicenseFile);
}
catch (Exception e)
{
e.printStackTrace();
}
}

public static synchronized void setLicense()
{
if (instance == null)
{
instance = new LicenseSingleton(pathToLicenseFile);
}
}
}
{{< /highlight >}}

You can now initialize the license in your code by simply calling LicenseSingleton.setLicense():
{{< highlight java >}}
LicenseSingleton.setLicense();
BarCodeReader reader = new BarCodeReader(Global.pathCombine(Global.getBarcodeJavaIssuesTestImagePath("BARCODJAVA10990"), "w8imytaxform-vertical.tif"), DecodeType.CODE_39_FULL_ASCII);
for (BarCodeResult result : reader.readBarCodes())
{
System.out.printf("CodeText: %s%n", result.getCodeText());;
System.out.printf("CodeType: %s%n", result.getCodeType());;
}
{{< /highlight >}}

### **Install License From File**

{{< highlight java >}}
com.aspose.barcode.License license = new com.aspose.barcode.License();
license.setLicense(pathToLicenseFile);
{{< /highlight >}}
or
{{< highlight java >}}
com.aspose.barcode.License license = new License();
license.setLicense(new File(pathToLicenseFile));
{{< /highlight >}}

### **Install License From Stream**

{{< highlight java >}}
License license = new License();
Path filePath = Paths.get(pathToLicenseFile);
try (InputStream inputStream = Files.newInputStream(filePath))
{
license.setLicense(inputStream);
}
catch (IOException e)
{
e.printStackTrace();
}
{{< /highlight >}}

<!--
### **Configure Metered Key**
Aspose.BarCode for Java allows developers to apply metered keys. It is a new licensing mechanism that can be applied along with the existing licensing method. Those customers who want to be billed based on the usage of API features can apply metered licensing. For more details, please refer to [Metered Licensing FAQ](https://purchase.aspose.com/faqs/licensing/metered).
Class [*Metered*](https://reference.aspose.com/barcode/java/com.aspose.barcode.metered/package-frame) has been introduced to apply the metered key. The sample code snippet demonstrating how to set metered public and private keys is provided below.
{{< gist "aspose-com-gists" "9dea2dd38be50330a824dd05da062a97" "Examples-src-main-java-com-aspose-barcode-examples-ApplyMeteredKey-ApplyMeteredKey.java" >}}




-->
Loading

0 comments on commit 77a4322

Please sign in to comment.