ByteScout Barcode Reader SDK - C# - Barcodes From TIFF - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

ByteScout Barcode Reader SDK – C# – Barcodes From TIFF

  • Home
  • /
  • Articles
  • /
  • ByteScout Barcode Reader SDK – C# – Barcodes From TIFF

ByteScout Barcode Reader SDK – C# – Barcodes From TIFF

Program.cs

using System;
using Bytescout.BarCodeReader;

namespace BarcodesFromTIFF
{
    class Program
    {
        static void Main()
        {
            Reader barcodeReader = new Reader();
            barcodeReader.RegistrationName = "demo";
			barcodeReader.RegistrationKey = "demo";

            // Limit search to 1-dimensional barcodes only (exclude 2D barcodes to speed up the processing).
            // Change to barcodeReader.BarcodeTypesToFind.SetAll() to scan for all supported 1D and 2D barcode types
            // or select specific type, e.g. barcodeReader.BarcodeTypesToFind.PDF417 = True
			barcodeReader.BarcodeTypesToFind.All1D = true;
			
			Console.WriteLine("Reading barcode(s) from TIFF image...");

            FoundBarcode[] barcodes = barcodeReader.ReadFrom("multipage.tif");

            foreach (FoundBarcode barcode in barcodes)
            {
                Console.WriteLine("Found barcode with type '{0}' and value '{1}' on page {2} at {3}", barcode.Type, barcode.Value, barcode.Page, barcode.Rect);
            }

            Console.WriteLine();
            Console.WriteLine("Press any key to continue.");
            Console.ReadKey();
        }
    }
}


  Click here to get your Free Trial version of the SDK

Tutorials:

prev
next