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

RESULTOPTIONS2

Show in webframe

typedef struct _tagResultOptions2
{
   L_UINT uStructSize;
   DOC2_FORMATTYPE Format;
   DOC2_FORMATLEVEL FormatLevel;
   DOCWRTFORMAT DocFormat;
} RESULTOPTIONS2, * pRESULTOPTIONS2;

The RESULTOPTIONS2 structure contains format information for the final output document.

Member

Description

uStructSize

Structure size. It should be equal to sizeof(RESULTOPTIONS2).

Format

Specifies which output text format to use for the final output document. For a list of possible values, refer to DOC2_FORMATTYPE.

FormatLevel

Specifies how much formatting to retain in the final output document. For a list of possible values, refer to DOC2_FORMATLEVEL.

DocFormat

Specifies document writer format, for more information, refer to DOCWRTFORMAT and comments section.

Comments

DocFormat member takes priority over the Format member. You can save the recognition results either to LEAD Document Writer or to an Engine native formats.

To save to Engine native formats, then set the DOCUMENTFORMAT_USER to DocFormat member. If you set this member to any other format, then the results will be saved to LEAD Document Writer formats. When you pass other format (not DOCUMENTFORMAT_USER) to DocFormat member, the OCR DLL will ignore all other values in this structure.

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

This structure is used with the following functions:

L_Doc2SetRecognitionResultOptions

L_Doc2GetRecognitionResultOptions

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