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

TEXTFORMATINFO

Show in webframe

typedef struct _tagTextFormatInfo
{
   L_UINT uStructSize;
   L_TCHAR * pszName;
   L_TCHAR * pszDLLName;
   L_TCHAR * pszExtName;
   FORMAT_OUTPUTTYPE Type;
} TEXTFORMATINFO, * pTEXTFORMATINFO;

The TEXTFORMATINFO structure contains detailed information about a specific format.

Member

Description

uStructSize

Specifies the structure size. It should be equal to sizeof(TEXTFORMATINFO).

pszName

Character string that contains the name of the output text format.
The toolkit will allocate memory internally for this member using the Windows GlobalAllocPtr macro. After you are done using this structure, you must use the Windows GlobalFreePtr macro to free the memory allocated by the toolkit if it contains a valid pointer (not NULL).

pszDLLName

Character string that contains the name of the output converter DLL file containing the Name converter.
The user is responsible for allocating pszDLLName to be large enough to hold all the characters and the terminating zero. The size of the buffer (in characters) must be set in pszDLLName.
The toolkit will allocate memory internally for this member using the Windows GlobalAllocPtr macro. After you are done using this structure, you must use the Windows GlobalFreePtr macro to free the memory allocated by the toolkit if it contains a valid pointer (not NULL).

pszExtName

Character string that contains the default extension for the final output document.
The user is responsible for allocating pszExtName to be large enough to hold all the characters and the terminating zero. The size of the buffer (in characters) must be set in pszExtName.
The toolkit will allocate memory internally for this member using the Windows GlobalAllocPtr macro. After you are done using this structure, you must use the Windows GlobalFreePtr macro to free the memory allocated by the toolkit if it contains a valid pointer (not NULL).

Type

Value that represents the type of document to output (e.g. plain text, word processor, spreadsheet). For a list of possible values, refer to FORMAT_OUTPUTTYPE.

Comments

pTEXTFORMATINFO is a pointer to a TEXTFORMATINFO structure. Where the function parameter type is pTEXTFORMATINFO, declare a TEXTFORMATINFO variable, update the structure's fields, and pass the variable's address in the parameter. Declaring a pTEXTFORMATINFO variable is necessary only if the program requires a pointer.

This structure is used with the L_DocGetTextFormatInfo function.

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