How to Extract Barcodes from PDF, DOCX, PPTX, EML, MSG, XLSX & EPUB via {ProductName}} API

GroupDocs.Parser for Java API enables software developers to extract Barcodes from PDF, Word (DOC, DOCX), Excel (XLS, XLSX), PowerPoint( PPT, PPTX), Outlook ( EML, MSG) & many other documents Page Area.


Download Free Trial

How to Extract Barcodes from DOT files Java API?

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.

Extract barcodes from DOT in Java

GroupDocs.Parser for Java makes it easy for Java developers to extract barcodes from a DOT file by implementing a few easy steps.

  • Instantiate Parser object for the initial document;
  • Check if the file supports barcode extracting;
  • Call getBarcodes method and obtain collection of PageBarcodeArea objects;
  • Iterate through the collection and get a barcode value.

How to extract barcodes from DOT file using Java example code

// 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());
    }
}

System Requirements

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.

  • Operating Systems: Microsoft Windows, Linux, MacOS
  • Development Environments: NetBeans, Intellij IDEA, Eclipse, etc.
  • Frameworks
  • Download the latest version of GroupDocs.Parser for Java from Maven

Why Use GroupDocs.Parser for Java

  • Plain text extraction support from any supported documents
  • Documents parsing via user-defined templates
  • Fully support structured text extraction
  • Text searching via keyword as well as regular expression
  • Extract formatted text, metadata, images, containers, and attachments
  • Extract table of contents for some supported document formats
  • Parse form data from PDF documents
  • Extract hyperlinks from the document

Live Demos - Extract barcodes from DOT Online

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

Extract Barcodes From Other Document Formats

Java documents parse & barcodes extracting API for file formats and images. Extract data for some of the popular file formats as stated below.

DOTM

(Microsoft Word 2007+ Template File)

DOTX

(Microsoft Word Template File )

EPUB

(Open eBook File)

HTML

(Hyper Text Markup Language)

MHT

(MHTML Web Archive)

MHTML

(Web Page Archive Format)

ODP

(OpenDocument Presentation Format)

ODS

(OpenDocument Spreadsheet)

ODT

(OpenDocument Text File Format)

ONE

(OneNote Document)

OTP

(OpenDocument Standard Format)

OTT

(OpenDocument Standard Format)

PDF

(Portable Document Format)

PPS

(PowerPoint Slide Show)

PPSX

(PowerPoint Slide Show)

PPT

(Microsoft PowerPoint 97-2003)

Back to top
 English