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 > IOcrDocumentManager Interface > CreateDocument Method : CreateDocument() Method |
IOcrDocument CreateDocument()
'Declaration
Overloads Function CreateDocument() As IOcrDocument
'Usage
Dim instance As IOcrDocumentManager Dim value As IOcrDocument value = instance.CreateDocument()
IOcrDocument CreateDocument()
public OcrDocument createDocument()
function Leadtools.Forms.Ocr.IOcrDocumentManager.CreateDocument()()
IOcrDocument^ CreateDocument();
This method creates a memory-based IOcrDocument. It is the equivalant of CreateDocument(null, OcrCreateDocumentOptions.InMemory). For more information on memory and file-based documents, refer to Programming with the LEADTOOLS .NET OCR.
Typical OCR operation using the IOcrEngine involves starting up and then creating an OCR document using the CreateDocument method then adding the pages into it and perform either automatic or manual zoning. Once this is done, IOcrPage.Recognize is called on each page to collect the recognition data and have it stored internally in the page. After the recognition data is collected, you use the various IOcrDocument.Save or IOcrDocument.SaveXml methods to save the document to its final format.
When you are done using the IOcrDocument object created by this method, you should dispose it as soon as possible to free its resources. Disposing an IOcrDocument object will free all the pages stored inside its IOcrDocument.Pages collection.