WordFinder Class Documentation
classWordFinder : SystemIDisposableNamespace:Datalogics::PDFL
- Inherits from:
SystemIDisposable
Detailed Description
A class used to extract words from a document.
Referenced by
Constructor & Destructor Documentation
WordFinder
WordFinder(WordFinderrhs, InternalConstructsignifier)Parameters
rhs: WordFindersignifier: InternalConstruct
WordFinder
WordFinder(Documentdoc, WordFinderVersionalgVersion, WordFinderConfigwbConfig)Parameters
doc: Documentdocument in which to find words
algVersion: WordFinderVersionalgorithm version to use
wbConfig: WordFinderConfigconfiguration for this word finder
Create a word finder
~WordFinder
~WordFinder()Member Function Documentation
ConstructorRetrieve
static WordFinderConstructorRetrieve(System.IntPtrignored)Parameters
ignored: System.IntPtr
Returns:
WordFinderDispose
voidDispose()Returns:
voidDisposeChildren
voidDisposeChildren()Returns:
voidEnumWords
boolEnumWords(intpageNum, WordProcwordProc)Parameters
pageNum: intThe page number from which to extract words. Pass AllPages to sequentially process all pages in the document.
wordProc: WordProcA user-supplied callback to call once for each word found. Enumeration halts if wordProc returns false.
Returns:
true if enumeration was successfully completed, false if enumeration was terminated because wordProc returned false.Extracts words, one at a time, from the specified page or the entire document. It calls a user-supplied procedure once for each word found.
Only words within or partially within the page's crop box (see Page.CropBox) are enumerated. Words outside the crop box are skipped.
Word objects passed to wordProc become invalid once the call to EnumWords returns, or if the page number changes between calls to the WordProc.
GetVisibleWordList
System.Collections.Generic.IList< Word >GetVisibleWordList(intpageNum)Parameters
pageNum: intthe page number for which to get the list of words.
Returns:
a list of x, y sorted words on the specified page.Finds all Visible words on the specified page and returns a list containing the words. The words are sorted by their x- and y-coordinates on the page.
GetWordList
System.Collections.Generic.IList< Word >GetWordList(intpageNum)Parameters
pageNum: intthe page number for which to get the list of words.
Returns:
a list of x, y sorted words on the specified page.Finds all words on the specified page and returns a list containing the words. The words are sorted by their x- and y-coordinates on the page.