Search for Barcode signatures in Pdf file

Java native API allows to search for Barcode signatures in already signed Pdf files. Perform advanced e-signature search within your Pdf documents using a few lines of code.


Download Free Trial

About GroupDocs.Signature for Java API

GroupDocs.Signature for Java provides Java API for processing documents using various signature types such as texts, images, digital certificates, barcodes, QR-codes, stamps or metadata. Users can add, delete, update, verify or search electronic signatures within PDFs, MS Word documents, MS Excel workbooks, MS PowerPoint presentations, Adobe Photoshop files and various image formats, with additional support for customizing signatures properties as needed.

How to search for Barcode signatures in Pdf

GroupDocs.Signature for Java makes it easier for Java developers to search for Barcode signatures in Pdf files from their applications by implementing a few easy steps.

  • Create a new instance of Signature class and pass source document path as a constructor parameter.
  • Instantiate the SearchOptions object according to your requirements and specify searching options.
  • Call Search method of Signature class instance and pass SearchOptions to it.
  • Process searching results accordingly to your demands.

System Requirements

GroupDocs.Signature for Java 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.
  • Java runtime: J2SE 6.0 and above
  • Download the latest version of GroupDocs.Signature for Java from Maven


// Set up input Pdf file
String filePath = "input.pdf";

// Instantiate Signature for input file
Signature signature = new Signature(filePath);

//Create search options
BarcodeSearchOptions options = new BarcodeSearchOptions();

// specify special pages to search on 
options.setAllPages(false);
// single page number
options.setPageNumber(1);
// specify text match type
options.setMatchType(TextMatchType.Contains);
// specify text pattern to search
options.setText("Text signature");
// return  Barcode images for processing
options.setReturnContent(true);
// set up type of returned  Barcode images
options.setReturnContentType(FileType.PNG);
                    
// search for Barcode signatures in Pdf document
List<BarcodeSignature> signatures = signature.search(BarcodeSignature.class, options);

// process signatures which were found 
signatures.forEach(item -> System.out.println(item.toString()));

Search for Barcode electronic signatures Live Demo

Search the document for various electronic signatures to Pdf files right now by visiting the GroupDocs.Signature App website.

No need to download API

No need to write any code

Just upload the source file

Get download link to save the file

Search for other Barcode signatures using Java

“Electronic signatures search in various documents. Find signatures from the one of popular file formats as shown below.”

Search BARCODE in DOC

(Microsoft Word Binary Format)

Search BARCODE in DOCX

(Office 2007+ Word Document)

Search BARCODE in DOCM

(Microsoft Word 2007 Marco File)

Search BARCODE in DOT

(Microsoft Word Template Files)

Search BARCODE in DOTM

(Microsoft Word 2007+ Template File)

Search BARCODE in DOTX

(Microsoft Word Template File )

Search BARCODE in ODT

(OpenDocument Text File Format)

Search BARCODE in OTT

(OpenDocument Standard Format)

Search BARCODE in RTF

(Rich Text Format)

Search BARCODE in XLS

(Microsoft Excel Spreadsheet (Legacy))

Search BARCODE in XLSX

(Open XML Workbook)

Search BARCODE in XLSM

(Macro-enabled Spreadsheet)

Search BARCODE in XLSB

(Excel Binary Workbook)

Search BARCODE in CSV

(Comma Seperated Values)

Search BARCODE in ODS

(OpenDocument Spreadsheet)

Search BARCODE in OTS

(OpenDocument Spreadsheet Template)

Search BARCODE in XLTX

(Excel Template)

Search BARCODE in XLTM

(Excel Macro-Enabled Template)

Search BARCODE in PPT

(Microsoft PowerPoint 97-2003)

Search BARCODE in PPTX

(Open XML presentation Format)

Search BARCODE in PPS

(PowerPoint Slide Show)

Search BARCODE in PPSX

(PowerPoint Slide Show)

Search BARCODE in ODP

(OpenDocument Presentation Format)

Search BARCODE in OTP

(OpenDocument Standard Format)

Search BARCODE in POTX

(Microsoft PowerPoint Template Presentation)

Search BARCODE in POTM

(Microsoft PowerPoint Template File)

Search BARCODE in PPTM

(Macro-enabled Presentation File)

Search BARCODE in PPSM

(Macro-enabled Slide Show)

Search BARCODE in PNG

(Portable Network Graphic)

Search BARCODE in JPG

(Joint Photographic Expert Group Image)

Search BARCODE in BMP

(Bitmap Image File)

Search BARCODE in GIF

(Graphical Interchange Format)

Search BARCODE in TIFF

(Tagged Image File Format)

Search BARCODE in SVG

(Scalar Vector Graphics)

Search BARCODE in WEBP

(Raster Web Image Format)

Search BARCODE in WMF

(Windows Metafile)

Back to top
 English