LEADTOOLS OCR (Leadtools.Forms.Ocr assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
OcrAutoRecognizeJobData Constructor(String,DocumentFormat,String)
See Also 
Leadtools.Forms.Ocr Namespace > OcrAutoRecognizeJobData Structure > OcrAutoRecognizeJobData Constructor : OcrAutoRecognizeJobData Constructor(String,DocumentFormat,String)



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 Leadtools.Forms.DocumentWriters.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).

The OcrAutoRecognizeJobData Constructor(String,DocumentFormat,String) is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.

Initializes a new instance of OcrAutoRecognizeJobData with the specified parameters.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal imageFileName As String, _
   ByVal format As DocumentFormat, _
   ByVal documentFileName As String _
)
Visual Basic (Usage)Copy Code
Dim imageFileName As String
Dim format As DocumentFormat
Dim documentFileName As String
 
Dim instance As New OcrAutoRecognizeJobData(imageFileName, format, documentFileName)
C# 
public OcrAutoRecognizeJobData( 
   string imageFileName,
   DocumentFormat format,
   string documentFileName
)
C++/CLI 
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 Leadtools.Forms.DocumentWriters.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).

Example

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

OcrAutoRecognizeJobData.JobName

null (Nothing in Visual Basic)

OcrAutoRecognizeJobData.UserData

null (Nothing in Visual Basic)

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

OcrAutoRecognizeJobData Constructor(String,DocumentFormat,String) requires an OCR module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features