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.
Structure size. Set it to sizeof(RESULTOPTIONS2).
Specifies which output text format to use for the final output document. For a list of possible values, refer to DOC2_FORMATTYPE.
Specifies how much formatting to retain in the final output document. For a list of possible values, refer to DOC2_FORMATLEVEL.
Specifies the document writer format. For more information, refer to DOCWRTFORMAT.
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: