We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Obtain barcode page number


We are reading a multi page TIFF file containing multiple bar codes. For instance, barcodes on the first, third and tenth page (total of 3 barcodes)

I know i can access them like these:

System.IO.MemoryStream ms = new System.IO.MemoryStream(attachment.Value);
BarCodeReader br = new BarCodeReader(new System.Drawing.Bitmap(ms));
br.SymbologyType = Symbology.Code39Extended;
br.Orientation = (Orientations)(-1);
br.VisualizeScanResult = true;
BarCodeInfo[] results;
results = br.Read();

Console.WriteLine(“BarCode Found:” + results[0].CodeText);
Console.WriteLine(“BarCode Found:” + results[1].CodeText);
Console.WriteLine(“BarCode Found:” + results[2].CodeText);

What i need to know is if i can obtain the page number. We are processing files that can have bar codes at different pages. Once I know the page number i can just brake the file into three small documents and save them in our system



Thanks for considering Aspose.

Please find the attached sample application that reads barcodes from multi-page tiff document. In this sample, each page is taken one by one and converted into Bitmap type object. If the recognition is successful, you can use these Bitmap objects and save these as a separate image documents.