#include "ltocr.h"

L_LTOCR_API L_INT EXT_FUNCTION L_OcrPage_Copy(page, targetPage)

L_OcrPage page; handle to the OCR page
L_OcrPage* targetPage; newly created page

Creates a copy of the page.

Parameter Description
page Handle to the OCR page.
targetPage Pointer to a handle of the newly created page.


SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.


This function performs the followings:

  1. Creates a new OCR page with a copy of the image in the source page.

  2. Copies any zones found in the source page to the newly created page.

  3. Copies any recognized results to the newly created page.

The target page will have no link whatsoever to the source page and must be disposed when no longer used.

If the source page does not have area of interest, the target will be an exact copy of the page.

If the source page contain area of interest previously set through L_OcrPage_SetAreaOptions, then, only the rectangle specified in L_OcrPageAreaOptions.Area is obtained. The target page will have dimension equal to Area and only the zones and recognized characters that are included in the area are copied.

Required DLLs and Libraries

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Help Version 20.0.2018.6.21
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.