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.

Members

uStructSize

Structure size. Set it 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 the document writer format. For more information, refer to DOCWRTFORMAT.

Comments

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

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

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.

The structure is used by:

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS OCR Module - OmniPage Engine C API Help