A collection of PageBarcodeArea objects; null if barcodes extraction isn’t supported.
Examples
The following example shows how to extract barcodes from a document:
// Create an instance of Parser classusing(Parserparser=newParser(filePath)){// Extract barcodes from the document.IEnumerable<PageBarcodeArea>barcodes=parser.GetBarcodes();// Iterate over barcodesforeach(PageBarcodeAreabarcodeinbarcodes){// Print the page indexConsole.WriteLine("Page: "+barcode.Page.Index.ToString());// Print the barcode valueConsole.WriteLine("Value: "+barcode.Value);}}
A collection of PageBarcodeArea objects; null if barcodes extraction isn’t supported.
Examples
The following example shows how to extract barcodes from a document page:
// Create an instance of Parser classusing(Parserparser=newParser(filePath)){// Extract barcodes from the second document page.IEnumerable<PageBarcodeArea>barcodes=parser.GetBarcodes(1);// Iterate over barcodesforeach(PageBarcodeAreabarcodeinbarcodes){// Print the page indexConsole.WriteLine("Page: "+barcode.Page.Index.ToString());// Print the barcode valueConsole.WriteLine("Value: "+barcode.Value);}}
A collection of PageBarcodeArea objects; null if barcodes extraction isn’t supported.
Examples
The following example shows how to extract barcodes from the upper-right corner.
// Create an instance of Parser classusing(Parserparser=newParser(filePath)){// Create the options which are used for barcodes extractionBarcodeOptionsoptions=newBarcodeOptions(newRectangle(newPoint(590,80),newSize(150,150)));// Extract barcodes from the upper-right corner.IEnumerable<PageBarcodeArea>barcodes=parser.GetBarcodes(options);// Iterate over barcodesforeach(PageBarcodeAreabarcodeinbarcodes){// Print the page indexConsole.WriteLine("Page: "+barcode.Page.Index.ToString());// Print the barcode valueConsole.WriteLine("Value: "+barcode.Value);}}