Error processing SSI file
LEADTOOLS OCR (Leadtools.Forms.Ocr assembly)

Show in webframe

OcrAutoRecognizeJobData Constructor(String,DocumentFormat,String)








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 Visual Basic) and must contain the name of an existing file on disk.
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.
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 Visual Basic).
Initializes a new instance of OcrAutoRecognizeJobData with the specified parameters.
Syntax
public OcrAutoRecognizeJobData( 
   string imageFileName,
   DocumentFormat format,
   string documentFileName
)
'Declaration
 
Public Function New( _
   ByVal imageFileName As String, _
   ByVal format As DocumentFormat, _
   ByVal documentFileName As String _
)
'Usage
 
Dim imageFileName As String
Dim format As DocumentFormat
Dim documentFileName As String
 
Dim instance As New OcrAutoRecognizeJobData(imageFileName, format, documentFileName)
public OcrAutoRecognizeJobData( 
   string imageFileName,
   DocumentFormat format,
   string documentFileName
)
- (instancetype)initWithImageFile:(NSString *)fileName 
                           format:(LTDocumentFormat)format 
                     documentFile:(NSString *)documentFile
            
public OcrAutoRecognizeJobData(String imageFileName,
                               DocumentFormat format,
                               String documentFileName)
            
function OcrAutoRecognizeJobData( 
   imageFileName ,
   format ,
   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 multi-page image file format supported by LEADTOOLS. This member cannot be a null reference (Nothing in Visual Basic) 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 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 Visual Basic).
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

JobName

null (Nothing in Visual Basic)

UserData

null (Nothing in Visual Basic)

Example
For an example, refer to RunJob and RunJobAsync.
Requirements

Target Platforms

See Also

Reference

OcrAutoRecognizeJobData Structure
OcrAutoRecognizeJobData Members
Overload List
Programming with the LEADTOOLS .NET OCR

Error processing SSI file
Leadtools.Forms.Ocr requires a Recognition or Document Imaging Suite license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features