Read Barcode From TIFF in Java.

TIFF images are usually used to store multiple barcodes during automatic scanning. Such cases require to read multiple barcodes from the multi-frame TIFF image. Accordingly, this article explains how to read different kinds of barcodes from a TIFF image programmatically in Java.

Scan Barcode From TIFF Image - Java API Configuration

Aspose.BarCode for Java supports working with different kinds of barcodes. You only need to make a few API calls to create or manipulate barcodes. Simply download the JAR file from the New Releases section or configure it from Aspose Repository by using the following details in the pom.xml file of your project.

<repository>
    <id>AsposeJavaAPI</id>
    <name>Aspose Java API</name>
    <url>http://repository.aspose.com/repo/</url>
</repository>
<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-barcode</artifactId>
    <version>22.11</version>
</dependency>

Steps to Read Barcode From Multi-Frame TIFF Images in Java

The following steps summarize how to read barcode from multi-frame TIFF image in Java:

  1. Load the source TIFF image file.
  2. Get the page count of the TIFF image.
  3. Feed each page to the reader.
  4. Read the barcodes in a single frame.

Read Barcodes From a TIFF Image Programmatically in Java

You can read barcodes from a multi-frame TIFF image programmatically in Java with the following approach:

  1. Load the source TIFF image file.
  2. Get the page count of the TIFF image.
  3. Feed each page to the BarCodeReader class object.
  4. Read the barcodes in a single frame with BarCodeResult class.

The code sample below shows how to read barcodes from a TIFF image programmatically in Java:

Get a Free License

You can obtain a free temporary license to avoid all the evaluation limitations so that the API may be tested to its full capacity.

Conclusion

In this article, you have understood how to read barcode from a multi-frame TIFF image programmatically in Java. You can take a look at the documentation section to explore working with different kinds of barcodes. Please feel free to reach out to us at forum.

See Also