Package com.datalogics.PDFL
Class DocTextFinder
java.lang.Object
com.datalogics.PDFL.DocTextFinder
A class used to extract words from a document using a regular expression.
-
Constructor Summary
ConstructorsConstructorDescriptionDocTextFinder(Document doc, WordFinderConfig wbConfig) Create a DocTextFinder -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()getMatchList(int beginPageNumber, int endPageNumber, String regexstr) Finds all matching strings for a given regular expression for the specified page range.
-
Constructor Details
-
DocTextFinder
Create a DocTextFinder- Parameters:
doc- document to searchwbConfig- 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.
-