←Select platform

OcrAutoRecognizeJobData Constructor(string,DocumentFormat,string)

Summary

Initializes a new instance of OcrAutoRecognizeJobData with the specified parameters.

Syntax
C#
VB
Objective-C
C++
Java
Public Function New( _ 
   ByVal imageFileName As String, _ 
   ByVal format As DocumentFormat, _ 
   ByVal documentFileName As String _ 
) 
- (instancetype)initWithImageFile:(NSString *)fileName  
                           format:(LTDocumentFormat)format  
                     documentFile:(NSString *)documentFile 
public OcrAutoRecognizeJobData(String imageFileName, 
                               DocumentFormat format, 
                               String documentFileName) 
public: 
OcrAutoRecognizeJobData(  
   String^ imageFileName, 
   DocumentFormat format, 
   String^ documentFileName 
) 

Parameters

imageFileName

The name of the file containing the source image. This can be any single or multipage 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.

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 is saved using the native engine format set in IOcrDocumentManager.EngineFormat when 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).

Remarks

This constructor will initialize the members of the new OcrAutoRecognizeJobData object as described below:

Member Value
ImageFileName

imageFileName

FirstPageNumber

1

LastPageNumber

-1

ZonesFileName

null (Nothing in Visual Basic)

Format

format

DocumentFileName

documentFileName

DocumentStream

null

JobName

null (Nothing in Visual Basic)

UserData

null (Nothing in Visual Basic)

Example

For an example, refer to RunJob and RunJobAsync.

Requirements

Target Platforms

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Ocr Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.