Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS OCR C DLL Help

ENUMOUTPUTFILEFORMATS Function

Show in webframe

#include "ltdoc.h"

L_INT pEXT_CALLBACK YourFunction(Format, pUserData)

FORMAT_TYPE 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 L_DocEnumOutputFileFormats.

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 L_DocEnumOutputFileFormats.)

 

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 L_DocEnumOutputFileFormats. Pass the address of your callback function of ENUMOUTPUTFILEFORMATS to pfnCallback parameter.

To get extra information about any format, call L_DocGetTextFormatInfo.

Required DLLs and Libraries

LTDOC

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_DocGetStatus, L_DocRecognize, L_DocSaveResultsToMemory, L_DocFreeMemoryResults, L_DocSetRecognitionResultOptions, L_DocGetRecognitionResultOptions, L_DocGetTextFormatInfo, L_DocSaveResultsToFile, L_DocSetSpecialChar, L_DocGetSpecialChar, L_DocGetRecognizedCharacters, L_DocSetRecognizedCharacters, L_DocFreeRecognizedCharacters, L_DocEnumOutputFileFormats

Topics:

Recognizing Document Pages

 

OCR Functions: Callbacks

Example

For an Example, refer to L_DocEnumOutputFileFormats.

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.