Search for Text signatures in Doc file

Java native API allows to search for Text signatures in already signed Doc files. Perform advanced e-signature search within your Doc 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 Text signatures in Doc

GroupDocs.Signature for Java makes it easier for Java developers to search for Text signatures in Doc 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 Doc file
String filePath = "input.doc";

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

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

// 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");
                    
// search for Text signatures in Doc document
List<TextSignature> signatures = signature.search(TextSignature.class, options);

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

Search for Text electronic signatures Live Demo

Search the document for various electronic signatures to Doc 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 Text signatures using Java

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

Search TEXT in PDF

(Portable Document Format)

Search TEXT in DOCX

(Office 2007+ Word Document)

Search TEXT in DOCM

(Microsoft Word 2007 Marco File)

Search TEXT in DOT

(Microsoft Word Template Files)

Search TEXT in DOTM

(Microsoft Word 2007+ Template File)

Search TEXT in DOTX

(Microsoft Word Template File )

Search TEXT in ODT

(OpenDocument Text File Format)

Search TEXT in OTT

(OpenDocument Standard Format)

Search TEXT in RTF

(Rich Text Format)

Search TEXT in XLS

(Microsoft Excel Spreadsheet (Legacy))

Search TEXT in XLSX

(Open XML Workbook)

Search TEXT in XLSM

(Macro-enabled Spreadsheet)

Search TEXT in XLSB

(Excel Binary Workbook)

Search TEXT in CSV

(Comma Seperated Values)

Search TEXT in ODS

(OpenDocument Spreadsheet)

Search TEXT in OTS

(OpenDocument Spreadsheet Template)

Search TEXT in XLTX

(Excel Template)

Search TEXT in XLTM

(Excel Macro-Enabled Template)

Search TEXT in PPT

(Microsoft PowerPoint 97-2003)

Search TEXT in PPTX

(Open XML presentation Format)

Search TEXT in PPS

(PowerPoint Slide Show)

Search TEXT in PPSX

(PowerPoint Slide Show)

Search TEXT in ODP

(OpenDocument Presentation Format)

Search TEXT in OTP

(OpenDocument Standard Format)

Search TEXT in POTX

(Microsoft PowerPoint Template Presentation)

Search TEXT in POTM

(Microsoft PowerPoint Template File)

Search TEXT in PPTM

(Macro-enabled Presentation File)

Search TEXT in PPSM

(Macro-enabled Slide Show)

Back to top
 English