←Select platform

OcrAutoRecognizeJobData Constructor(string,int,int,DocumentFormat,string)

Summary
Initializes a new instance of OcrAutoRecognizeJobData with the specified parameters.

Syntax
C#
Objective-C
C++/CLI
Java
Python
- (instancetype)initWithImageFile:(NSString *)fileName firstPage:(NSInteger)firstPage lastPage:(NSInteger)lastPage format:(LTDocumentFormat)format documentFile:(NSString *)documentFile; 
public OcrAutoRecognizeJobData(String imageFileName, 
                               int firstPageNumber, 
                               int lastPageNumber, 
                               DocumentFormat format, 
                               String documentFileName) 
public: 
OcrAutoRecognizeJobData(  
   String^ imageFileName, 
   int firstPageNumber, 
   int lastPageNumber, 
   DocumentFormat format, 
   String^ documentFileName 
) 
__init__(self,imageFileName,firstPageNumber,lastPageNumber,format,documentFileName) # Overloaded constructor 

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.

firstPageNumber
1-based index of the first page number in  imageFileName to recognize. You can use this and  lastPageNumber to recognize only a certain range of pages in the source file. This parameter must be greater than or equals to 1 (first page in the file).

lastPageNumber
1-based index of the last page number in  imageFileName to recognize. You can use this and  firstPageNumber to recognize only a certain range of pages in the source file. You can use a value of -1 to indicate "up to last page in the file", otherwise, this member must be a value greater than or equals to  firstPageNumber up to the maximum number of pages in the source file name.

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

firstPageNumber

LastPageNumber

lastPageNumber

ZonesFileName

null (Nothing in Visual Basic)

Format

format

DocumentFileName

documentFileName

DocumentStream

null

JobName

null (Nothing in Visual Basic)

UserData

null (Nothing in Visual Basic)

Requirements

Target Platforms

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

Leadtools.Ocr Assembly

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