Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS OCR C DLL Help

Working with Pages

Show in webframe

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:

For more information refer to:

 An Overview of Recognition Modules

Recognizing Document Pages

Drawing Pages and Zones

Working with Zones

OCR Plus

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_DocDetectOrientationDegree. Please note that this function does not perform the orientation, it just obtains the degree of orientation necessary. Call L_DocAutoOrientPage 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_DocGetPageCount. To get general information about a specific page, call L_DocGetPageInfo.

To add a page from an image file into the OCR document page list, call L_DocAddPage. To remove a page from the OCR document page list, call L_DocRemovePage.

To enable or disable the automatic cleaning-up temporary files, call the L_DocCleanupPages function.

L_DocExportPage 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_DocUpdatePage. Before updating the page however, you must lock the page by calling L_DocLockPage. After updating the bitmap, unlock the page by calling L_DocUnlockPage.

To get the general fill method for the engine, call L_DocGetFillMethod. L_DocSetFillMethod updates the general fill method for the engine.

To get the default fill method for a specific page, call L_DocFindDefaultFillMethod.

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.

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.