Sets the engine instance to use when converting documents using OCR.
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
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.