L_Doc2GetSelectedZoneExt

#include "ltdoc2.h"

L_LTDOC2_API L_INT L_Doc2GetSelectedZoneExt(hDoc, nDocId, nPageIndex, pZoneData, uStructSize)

Gets the zone data of the selected zone in the specified page.

Parameters

L_HDOC2 hDoc

Handle to the OCR document.

L_INT nDocId

Document ID created by calling L_Doc2CreateDocument.

L_INT nPageIndex

Zero-based index of the page in which to find the zone data for its selected zone.

pZONEDATA2 pZoneData

Pointer to a ZONEDATA2 structure to be updated.

L_UINT uStructSize

Size in bytes, of the structure pointed to by pZoneData. Use sizeof(ZONEDATA2) to calculate this value.

Returns

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

Comments

To select a zone, call the L_Doc2SelectZone / L_Doc2SelectZoneExt function or the L_Doc2SelectZoneByPoint/ L_Doc2SelectZoneByPointExt function.

To get the zone data for a specific zone, call the L_Doc2GetZone / L_Doc2GetZoneExt function.

Required DLLs and Libraries

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS OCR Module - OmniPage Engine C API Help