RESULTOPTIONS2

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

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Professional OCR C API Help