Error processing SSI file
LEADTOOLS Leadtools.Documents.Converters (Leadtools.Documents.Converters assembly)

Show in webframe

SetOcrEngineInstance Method






The OCR engine instance to use when converting documents. If this is not null, then the engine must be initialized and started.
true to transfer ownership of instance to this document converter and automatically dispose it when the DocumentConverter is disposed; otherwise, false to not transfer ownership and not dispose instance when this DocumentConverter is disposed.
Sets the engine instance to use when converting documents using OCR.
Syntax
public void SetOcrEngineInstance( 
   IOcrEngine instance,
   bool autoDispose
)
'Declaration
 
Public Sub SetOcrEngineInstance( _
   ByVal instance As IOcrEngine, _
   ByVal autoDispose As Boolean _
) 
'Usage
 
Dim instance As DocumentConverter
Dim instance As IOcrEngine
Dim autoDispose As Boolean
 
instance.SetOcrEngineInstance(instance, autoDispose)
public void setOcrEngineInstance(OcrEngine instance, boolean autoDispose)
            
public:
void SetOcrEngineInstance( 
   IOcrEngine^ instance,
   bool autoDispose
) 

Parameters

instance
The OCR engine instance to use when converting documents. If this is not null, then the engine must be initialized and started.
autoDispose
true to transfer ownership of instance to this document converter and automatically dispose it when the DocumentConverter is disposed; otherwise, false to not transfer ownership and not dispose instance when this DocumentConverter is disposed.
Remarks

The IOcrEngine instance passed to this method will be used when the DocumentConverter uses OCR for the conversion. This DocumentConverter does not create its own IOcrEngine and will throw an error if the user instruct it to use OCR without a previously set instance.

OcrEngineInstance will return the same value passed for instance.

The previously set IOcrEngine is removed and optionally disposed if it was set with autoDispose value of true. If instance is null, the previously set instance is removed and this DocumentConverter will not have an IOcrEngine instance.

Example

For an example, refer to DocumentConverter.

Requirements

Target Platforms

See Also

Reference

DocumentConverter Class
DocumentConverter Members
Using LEADTOOLS Document Converters

Error processing SSI file
   Leadtools.Documents.Converters requires a Document or Medical toolkit license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features