Link Search Menu Expand Document

HelpersAutodetectFieldExpression Method (String, Int32, RectangleF, String, String, String, String)

Try to detect common expression to extract field content.

Namespace:ByteScout.DocumentParser
Assembly: ByteScout.DocumentParser (in ByteScout.DocumentParser.dll) Version: 6.4.1.617-master
Syntax
public static string[][] AutodetectFieldExpression(
	string fileName,
	int pageIndex,
	RectangleF fieldRectangle,
	string templateCulture = null,
	string ocrLanguageDataFolder = null,
	string ocrLanguage = null,
	string documentPassword = null
)

Parameters

fileName
Type: SystemString
Document file (PDF or image).
pageIndex
Type: SystemInt32
Document page index.
fieldRectangle
Type: System.DrawingRectangleF
Field rectangle.
templateCulture (Optional)
Type: SystemString
Template culture. Default is "en-US".
ocrLanguageDataFolder (Optional)
Type: SystemString
Folder that contains OCR language data files.
ocrLanguage (Optional)
Type: SystemString
OCR language.
documentPassword (Optional)
Type: SystemString
PDF document password.

Return Value

Type: String
Array of detected template objects.
See Also

Reference