ENUMOUTPUTFILEFORMATS2

#include "ltdoc2.h"

L_INT pEXT_CALLBACK YourFunction(Format, pUserData)

DOC2_FORMATTYPE Format;

/* format type */

L_VOID * pUserData;

/* pointer to additional parameters */

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

Parameter

Description

Format

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

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

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

LTDOC2

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

See Also

Functions:

L_Doc2GetStatus, L_Doc2Recognize, L_Doc2SetRecognitionResultOptions, L_Doc2GetRecognitionResultOptions, L_Doc2GetTextFormatInfo, L_Doc2SaveResultsToFile, L_Doc2SetSpecialChar, L_Doc2GetSpecialChar, L_Doc2GetRecognizedCharacters, L_Doc2SetRecognizedCharacters, L_Doc2FreeRecognizedCharacters, L_Doc2EnumOutputFileFormats

Topics:

Recognizing Document Pages

 

OCR Functions: Callbacks

Example

For an Example, refer to L_Doc2EnumOutputFileFormats.