Visual Basic (Declaration) | |
---|---|
Overridable Function CreateDocument() As IOcrDocument |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
virtual IOcrDocument CreateDocument() |
C++/CLI | |
---|---|
virtual IOcrDocument^ CreateDocument(); |
Return Value
An object implementing IOcrDocument that can paricipate in recognition and saving operations.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.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family