ENUMOUTPUTFILEFORMATS Function
#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
Example
For an Example, refer to L_DocEnumOutputFileFormats.