LEADTOOLS OCR (Leadtools.Forms.Ocr assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
CreateDocument Method
See Also 
Leadtools.Forms.Ocr Namespace > IOcrDocumentManager Interface : CreateDocument Method



The CreateDocument Method is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.

Creates a new OCR document object.

Syntax

Visual Basic (Declaration) 
Function CreateDocument() As IOcrDocument
Visual Basic (Usage)Copy Code
Dim instance As IOcrDocumentManager
Dim value As IOcrDocument
 
value = instance.CreateDocument()
C# 
IOcrDocument CreateDocument()
C++/CLI 
IOcrDocument^ CreateDocument(); 

Return Value

An object implementing IOcrDocument that can paricipate in recognition and saving operations.

Example

For an example, refer to IOcrDocumentManager.

Remarks

Typical OCR operation using the IOcrEngine involves starting up and then creating an OCR document using the IOcrDocumentManager.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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

CreateDocument requires an OCR module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features