An OCR document contains one or more pages. After starting the OCR document engine, you can begin working with the document page(s). LEADTOOLS provides support for the following when working with OCR pages:
Getting information about one ore more pages
Adding or removing pages,
Exporting pages.
Updating pages.
For more information refer to:
An Overview of Recognition Modules
OCR Professional
It may be necessary to alter the orientation of a page to make it more readable. To determine the angle necessary to orient the page, call L_Doc2DetectOrientationDegree. Please note that this function does not perform the orientation, it just obtains the degree of orientation necessary. Call L_Doc2AutoOrientPage to orient the page automatically. This function corrects the rotation of the page and automatically updates the image data.
Two functions may be used to obtain information about one or more pages in the OCR document. To determine the total number of pages in the OCR document, call L_Doc2GetPageCount. To get general information about a specific page, call L_Doc2GetPageInfo.
To add a page from an image file into the OCR document page list, call L_Doc2AddPage. To remove a page from the OCR document page list, call L_Doc2RemovePage.
To enable or disable the automatic cleaning-up temporary files, call the L_Doc2CleanupPages function.
L_Doc2ExportPage exports a page from the OCR document to a file.
If the bitmap of a page changes, for example following the application of an image processing function, the page should by updated by calling L_Doc2UpdatePage. Before updating the page however, you must lock the page by calling L_Doc2LockPage. After updating the bitmap, unlock the page by calling L_Doc2UnlockPage.
To get the general fill method for the engine, call L_Doc2GetFillMethod. L_Doc2SetFillMethod updates the general fill method for the engine.
To get the default fill method for a specific page, call L_Doc2FindDefaultFillMethod.