typedef struct _tagResultOptions
{
L_UINT uStructSize;
FORMAT_TYPE Format;
FORMATLEVEL FormatLevel;
DOCUMENTOPTIONS DocOptions;
PARAGRAPHOPTIONS ParagOptions;
CHARACTEROPTIONS CharOptions;
MARKOPTIONS MarkOptions;
DOCWRTFORMAT DocFormat;
} RESULTOPTIONS, * pRESULTOPTIONS;
The RESULTOPTIONS structure contains result document properties for the final output document.
This structure contains the format type that will be used in saving the recognition results by calling L_DocSaveResultsToFile.
Member |
Description |
uStructSize |
Specifies the structure size. It should be equal to sizeof(RESULTOPTIONS). |
Format |
Specifies the output text format for the final output document. For a list of possible values, refer to FORMAT_TYPE. |
FormatLevel |
Specifies the level of format retention for the final output document. For a list of possible values, refer to FORMATLEVEL. |
DocOptions |
Structure that contains document options. For more information, refer to the DOCUMENTOPTIONS structure. |
ParagOptions |
Structure that contains paragraph options. For more information, refer to PARAGRAPHOPTIONS structure. |
CharOptions |
Structure that contains character options. For more information, refer to CHARACTEROPTIONS structure. |
MarkOptions |
Structure that contains mark options. For more information, refer to MARKOPTIONS structure. |
DocFormat |
Specifies document writer format. for more information, refer to DOCWRTFORMAT and comments section. |
Comments
DocFormat member take priority over the Format member. Since you can save the recognition results to LEAD Document Writer formats or to an Engine native format.
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.
pRESULTOPTIONS is a pointer to a RESULTOPTIONS structure. Where the function parameter type is pRESULTOPTIONS, declare a RESULTOPTIONS variable, update the structure's fields, and pass the variable's address in the parameter. Declaring a pRESULTOPTIONS variable is necessary only if the program requires a pointer.
This structure is used with the following functions: