Initializes a new instance of OcrAutoRecognizeJobData with the specified parameters.
public OcrAutoRecognizeJobData(
string imageFileName,
string zonesFileName,
DocumentFormat format,
string documentFileName
)
Public Function New( _
ByVal imageFileName As String, _
ByVal zonesFileName As String, _
ByVal format As Leadtools.Forms.Documentwriters.DocumentFormat, _
ByVal documentFileName As String _
)
- (instancetype)initWithImageFile:(NSString *)fileName
zonesFile:(nullable NSString *)zonesFile
format:(LTDocumentFormat)format
documentFile:(NSString *)documentFile
public OcrAutoRecognizeJobData(String imageFileName,
String zonesFileName,
DocumentFormat format,
String documentFileName)
public:
OcrAutoRecognizeJobData(
String^ imageFileName,
String^ zonesFileName,
Leadtools.Forms.Documentwriters.DocumentFormat format,
String^ documentFileName
)
imageFileName
The name of the file containing the source image. This can be any single or multi-page image file format supported by LEADTOOLS. This member cannot be a null reference (Nothing in VB) and must contain the name of an existing file on disk.
zonesFileName
Optional name of prepared multi-page zone file. This member can be a null (Nothing in VB) reference. When no zone file is specified, the IOcrAutoRecognizeManager will auto detect the zones for each page using IOcrPage.AutoZone.
format
The output document format. This can be any of the supported DocumentFormat such as PDF, DOC and TEXT. If this member is DocumentFormat.User, then the document saved using the native engine format set in IOcrDocumentManager.EngineFormat if the engine used supports native formats, otherwise an exception will be thrown.
documentFileName
The name of the output document file. When recognition is completed, this file will be created on disk. This member cannot be a null reference (Nothing in VB).
This constructor will initialize the members of the new OcrAutoRecognizeJobData object as described below:
Member | Value |
---|---|
ImageFileName | |
FirstPageNumber |
1 |
LastPageNumber |
-1 |
ZonesFileName | |
Format | |
DocumentFileName | |
JobName |
null (Nothing in Visual Basic) |
UserData |
null (Nothing in Visual Basic) |
For an example, refer to RunJob and RunJobAsync.
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET