ENUMOUTPUTFILEFORMATS2

#include "ltdoc2.h"

L_INT pEXT_CALLBACK YourFunction(Format, pUserData)

Enumerates the available file formats. The address of this callback is passed as an argument to the L_Doc2EnumOutputFileFormats function.

Parameters

DOC2_FORMATTYPE Format

Specifies the output format that is available in OCR document engine.

L_VOID * pUserData

A void pointer that you can use to access a variable or structure containing data that your callback function needs. This gives you a way to receive data indirectly from the function that uses this callback function. (This is the same pointer that you pass in the pUserData parameter of the L_Doc2EnumOutputFileFormats function.)

Keep in mind that this is a void pointer, which must be cast to the appropriate data type within your callback function.

Returns

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

Comments

To get all available output formats, call the L_Doc2EnumOutputFileFormats function. Pass the address of your callback function of ENUMOUTPUTFILEFORMATS2 to the pfnCallback parameter.

To get extra information about any format, call the L_Doc2GetTextFormatInfo function.

Required DLLs and Libraries

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

LEADTOOLS OCR Module - OmniPage Engine C API Help