bardecode.com
barcode reading software
  • Home
  • Download
  • Purchase
  • SDK Licensing
  • Pricing
    • Windows SDK Price List
    • Windows SDK with PDF Extension Price List
    • Linux SDK Price List
    • Linux SDK with PDF Extension Price List
    • PDF Extension For Windows Price List
    • Multi-Platform Toolkit for .NET Price List
    • BardecodeFiler Desktop Only Price List
    • BardecodeFiler Windows Service Price List
    • DOS Command Prompt Barcode Tool Price List
    • Terms and Conditions
    • Refund Policy
  • Products
    • Softek Barcode Reader Toolkit for Windows
    • Softek Barcode Reader Toolkit for Linux
    • BardecodeFiler Desktop App
    • BardecodeFiler Windows Service
    • Windows DOS Command Prompt Tool
    • Multi-platform barcode reader toolkit for .NET
    • Aquaforest’s Autobahn DX
  • Knowledge Base
    • Documentation
    • Specifications
  • News
  • Contact
    • About Us
    • Terms and Conditions
    • Resellers
    • Links
Select Page ...

News

Identifying output files when using tiff split

admin November 26, 2012 Settings, Software Development Kits No Comments

This article explains how to correlate the output files produced during a tiff split process against the barcode values returned by GetBarString. The algorithm shown here assumes default split mode (TiffSplitMode = 0) and handles multiple barcodes on a single page and the possibility of no barcode on the first page.

The code below uses the .net component, but it could equally be applied to other interfaces if GetBarStringPage was replaced by GetBarStringPos. In the algorithm, fileIndex is only increased when the current barcode is on a new page, and the boolean variable doneFile is use to make sure that output files are only processed once.

barcode = New SoftekBarcodeLib2.BarcodeReader

barcode.TifSplitMode = 0
barcode.TifSplitPath = “C:\temp\output%d.tif”

nBarCodes = barcode.ScanBarCode(inputFilePath)

Dim page As Integer
Dim fileIndex As Integer
Dim doneFile As Boolean
Dim barstring As String

page = 1
fileIndex = 1
doneFile = False

For i = 1 To nBarCodes
barstring = barcode.GetBarString(i)
If barcode.GetBarStringPage(i) > page Then
page = barcode.GetBarStringPage(i)
fileIndex = fileIndex + 1
doneFile = False
End If
If doneFile = False Then
MsgBox(“Process file ” & fileIndex.ToString() & ” with lead barcode value ” & barstring)
doneFile = True
End If
Next

← Reading barcodes from color images
Side by Side Error →
admin

  • Copyright © 2023 Softek Software Ltd. All Rights Reserved