Class DocTextFinder

java.lang.Object
com.datalogics.PDFL.DocTextFinder

public class DocTextFinder extends Object
A class used to extract words from a document using a regular expression.
  • Constructor Details

    • DocTextFinder

      public DocTextFinder(Document doc, WordFinderConfig wbConfig)
      Create a DocTextFinder

      Parameters:
      doc - document to search
      wbConfig - WordFinder configuration to use
  • Method Details

    • delete

      public void delete()
    • getMatchList

      public List<DocTextFinderMatch> getMatchList(int beginPageNumber, int endPageNumber, String regexstr)
      Finds all matching strings for a given regular expression for the specified page range. It returns a vector containing words along with the page and matching phrase that was found.

      Parameters:
      beginPageNumber - the beginning page number included in the search.
      endPageNumber - the ending page number included in the search.
      regexstr - the regular expression to use for the search.
      Returns:
      a structure containing matching phrases along with its quads.