L_Doc2ExportZonesExt

#include "ltdoc2.h"

L_LTDOC2_API L_INT L_Doc2ExportZonesExt(hDoc, nDocId, nPageIndex, pszFileName)

Exports the user zone list of the specified page to a zone file.

Parameters

L_HDOC2 hDoc

Handle to the OCR document.

L_INT nDocId

The Document ID created by calling L_Doc2CreateDocument.

L_INT nPageIndex

Zero-based page index from which to export the zones.

L_TCHAR * pszFileName

Character string containing the name of the zone file to export.

Returns

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

Comments

L_Doc2ExportZonesExt overwrites any pre-existing zone file having the same name. The zone coordinates are saved in the zone file in units of 1/1200 of an inch.

To import a zone file into a specific page, call the L_Doc2ImportZones / L_Doc2ImportZonesExt function.

This function does not save OCR zones: only user zones are saved.

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