Link Search Menu Expand Document

TextExtractorFindAllToJSON Method

Searches for all occurrences of specified text in specified document page or in entire document and returns result as JSON string.

Namespace:Bytescout.PDFExtractor
Assembly: Bytescout.PDFExtractor (in Bytescout.PDFExtractor.dll) Version: 13.4.0.4760-master
Syntax
public string FindAllToJSON(
	int pageIndex,
	string text,
	bool caseSensitive
)

Parameters

pageIndex
Type: SystemInt32
Index of page for searching. Use -1 to search the entire document.
text
Type: SystemString
Text to find.
caseSensitive
Type: SystemBoolean
Case sensitivity.

Return Value

Type: String
JSON string with search results.

Implements

ITextExtractorFindAllToJSON(Int32, String, Boolean)
Remarks
Use WordMatchingMode to change the word matching mode. Use WordMatchingPunctuationMarks if you need punctuation marks (dot, quotes etc) to be treated as part of word. Use RegexSearch to enable regular expressions (Regex).
See Also

Reference