Link Search Menu Expand Document

ITextExtractorFindAllToJSON 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.0.1.4281-master
Syntax
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.
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


Copyright © 2016 - 2021 ByteScout