Hi,Reading from Tiff file----------------------------I am trying to read barcode from multipage file, but it is returning empty string after reading the tiff file. I have attached both code I am using and till file with this post. Please advise me why it is not able to read the barcodes from tiff file.Reading from Pdf file-----------------------------Apart form tiff, I want to read barcodes from pdf files also. Please advise me what APIs are provided by infragistics to read barcodes from pdf file. Please throw some code samples for reading barcode from pdf files.The below code is to read barcode from tiff file.
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using System.Windows.Media.Imaging;//using System.Drawing;using System.Windows;using System.Windows.Controls;//using System.Windows.Media;using Infragistics.Controls.Barcodes;namespace ConsoleApplication1{class Program{static void Main(string[] args){Stream imageStreamSource = new FileStream(@"C:\Data\Srirangam\test.tif", FileMode.Open, FileAccess.Read, FileShare.Read);TiffBitmapDecoder decoder = new TiffBitmapDecoder(imageStreamSource, BitmapCreateOptions.PreservePixelFormat, BitmapCacheOption.Default);BitmapSource bitmapSource = decoder.Frames[1];BarcodeReader barReader = new BarcodeReader();barReader.BarcodeOrientation = SymbolOrientation.Unspecified;barReader.MaxNumberOfSymbolsToRead = 5;barReader.DecodeComplete += new EventHandler<ReaderDecodeArgs>(barReader_DecodeComplete);barReader.Decode(bitmapSource, Symbology.All);}static void barReader_DecodeComplete(object sender, ReaderDecodeArgs e){String barValue = e.Value;Console.WriteLine(barValue);}}}
RegardsUthay
HI Uthay,
I will contact the developers regarding Tiff files
Here a link to the Barcode Reader:
http://help.infragistics.com/NetAdvantage/WPFDV/2011.2/CLR4.0/?page=Developers_Guide_Infragistics_Barcode_Reader.html
Here a link to the API:http://help.infragistics.com/NetAdvantage/WPFDV/2011.2/CLR4.0/?page=Infragistics_BarcodeReader_API_Overview.html
Sincerely, MattDeveloper Support Engineer
Hi Matt, We have already gone through the links before posting our issue in the forum. The APIs provided by infragistics did not help us. here I want to read barcodes from Tiff and Pdf files. The decode method of barcode reader takes BitMapSource as parameter. So I want to pass my tiff file and pdf file as BitmapSource to the decode method of BarcodeReader. Please let me know how infragistics barcode reader support tiff and pdf files barcode readion. How I should pass my tiff and pdf file to decode method?
HI,
Just following up on this thread.
Please let me know if you need further assistance.
Sincerely, Matt Developer Support Engineer
Hi Uthay,
I am going to submit a feature request for our XamBarCode Reader to process Tiff and PDF files.
You could consider using a third party software product.
I found such a link using google
http://bytescout.com/products/enduser/misc/barcodereader.html
Sincerely,Matt Developer Support Engineer