ParserGetBarcodes Method |
Namespace: GroupDocs.Parser
The following example shows how to extract barcodes from a document:
// Create an instance of Parser class using (Parser parser = new Parser(filePath)) { // Extract barcodes from the document. IEnumerable<PageBarcodeArea> barcodes = parser.GetBarcodes(); // Iterate over barcodes foreach(PageBarcodeArea barcode in barcodes) { // Print the page index Console.WriteLine("Page: " + barcode.Page.Index.ToString()); // Print the barcode value Console.WriteLine("Value: " + barcode.Value); } }