Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.6.9
|
Leadtools.Forms.Ocr Assembly > Leadtools.Forms.Ocr Namespace > IOcrDocument Interface : DocumentWriterInstance Property |
DocumentWriter DocumentWriterInstance {get;}
'Declaration
ReadOnly Property DocumentWriterInstance As DocumentWriter
'Usage
Dim instance As IOcrDocument Dim value As DocumentWriter value = instance.DocumentWriterInstance
DocumentWriter DocumentWriterInstance {get;}
@property (nonatomic, strong, readonly) LTDocumentWriter *documentWriterInstance
public DocumentWriter getDocumentWriterInstance()
get_DocumentWriterInstance();
property DocumentWriter^ DocumentWriterInstance { DocumentWriter^ get(); }
The DocumentWriter object will be disposed of by the engine automatically when Dispose is called.
When new IOcrDocument objects are created using the IOcrDocumentManager.CreateDocument, a new object of type DocumentWriter is created by this IOcrEngine, and assigned to IOcrDocument.DocumentWriterInstance. All document creation operation (such as IOcrDocument.Save) that is performed inside by OCR document or objects inside the OCR document will use that object.
If the value of IOcrDocument.UseEngineInstanceOptions is true, then the options will be copied from the engine's DocumentWriter to the document DocumentWriter before any methods is called.
For more information on how this object is used by the OCR engine during its lifetime, refer to OCR Engine and RasterCodecs/DocumentWriter Usage.