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;
System.Collections.Generic;
System.Linq;
System.Text;
System.IO;
System.Windows.Media.Imaging;
//using System.Drawing;
System.Windows;
System.Windows.Controls;
//using System.Windows.Media;
Infragistics.Controls.Barcodes;
namespace
ConsoleApplication1
{
Program
[] args)
.Read);
.Default);
bitmapSource = decoder.Frames[1];
();
barReader.BarcodeOrientation =
.Unspecified;
barReader.MaxNumberOfSymbolsToRead = 5;
barReader.DecodeComplete +=
>(barReader_DecodeComplete);
barReader.Decode(bitmapSource,
.All);
}
e)
barValue = e.Value;
.WriteLine(barValue);
Regards
Uthay
Hello Uthay,
Thank you for your post. I have been looking into it and I can say that the Barcode Reader can read .JPEG and .PNG files. Here you can read more about the Reader:
http://help.infragistics.com/doc/WPF/2013.2/CLR4.0/?page=IG_Barcode_Reader.html
and in the Feature Browser under Infragistics Barcode Reader / Key Features / Reader Settings section you can see how to decode pictures.
Feel free to write me if you have further questions.