Barcodes image consists of a series of parallel black lines and white spaces of varying widths which can be used to encode information into a visual pattern. It was introduced in the 1970s and is now a universal part of commercial businesses. GroupDocs.Parser for Java is a powerful API that allows software programmers to build applications for parsing different types of documents and extract text, images and barcodes from it. It has included support for some of the most common documents types such as PDF, Emails, Ebooks, Microsoft Office formats: Word (DOC, DOCX), PowerPoint (PPT, PPTX), Excel (XLS, XLSX), Emails (EML, MSG) formats and many more. The Java API has included support for several important features related to documents parsing and data extraction such as plain text extraction, structured text extraction, extract markdown formatted text, extracting text from a specific page or page area, extract barcode from document, extract metadata or images and many more.
GroupDocs.Parser for Java makes it easy for Java developers to extract barcodes from a DOT file by implementing a few easy steps.
// Extract barcodes from DOT file using GroupDocs.Parser API
// Create an instance of Parser class
try (Parser parser = new Parser(Constants.SamplePdfWithBarcodes)) {
// // Check if the file supports barcode extracting
if (!parser.getFeatures().isBarcodes()) {
System.out.println("The file doesn't support barcode extracting.");
return;
}
// {steps.code.scan}
Iterable<PageBarcodeArea> barcodes = parser.getBarcodes();
// Iterate over barcodes
for (PageBarcodeArea barcode : barcodes) {
// Print the page index
System.out.println("Page: " + barcode.getPage().getIndex());
// Print the barcode value
System.out.println("Value: " + barcode.getValue());
}
}
GroupDocs.Parser for Java APIs are supported on all major platforms and operating systems. Before executing the code below, please make sure that you have the following prerequisites installed on your system.
Extract barcodes from DOT file right now by visiting GroupDocs.Parser Live Demos website. The live demo has the following benefits.
No need to download API
No need to write any code
Just upload the source file
Get download link to save the file
Java documents parse & barcodes extracting API for file formats and images. Extract data for some of the popular file formats as stated below.
(Microsoft Word 2007+ Template File)
(Microsoft Word Template File )
(Open eBook File)
(Hyper Text Markup Language)
(MHTML Web Archive)
(Web Page Archive Format)
(OpenDocument Presentation Format)
(OpenDocument Spreadsheet)
(OpenDocument Text File Format)
(OneNote Document)
(OpenDocument Standard Format)
(OpenDocument Standard Format)
(Portable Document Format)
(PowerPoint Slide Show)
(PowerPoint Slide Show)
(Microsoft PowerPoint 97-2003)