Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.3
|
Leadtools.Documents.Converters Namespace > DocumentConverter Class : SetOcrEngineInstance Method |
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 )
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.
For an example, refer to DocumentConverter.