DOCUMENTOPTIONS

typedef struct _tagDocumentOptions
{
   L_UINT uStructSize;
   SELECTOR PaperSize;
   PAPERTYPE PaperType;
   PAPERORIENTATION PaperOrientation;
   SELECTOR Language;
   LANGUAGE_RESULT ResLang;
   COLOR_RESULT Color;
   L_BOOL bEnableTextInBoxes;
   SELECTOR Margins;
   RECT rcMargin;
   L_BOOL bEnablePageBreaks;
   TABLEMETHOD TableMethod;
} DOCUMENTOPTIONS, L_FAR * pDOCUMENTOPTIONS;

The DOCUMENTOPTIONS structure contains page properties for the final output document.

Member

Description

uStructSize

Specifies the structure size. It should be equal to sizeof(DOCUMENTOPTIONS).

PaperSize

Value that indicates whether the paper size will be exported and, if the value is exported, it will indicate whether the value is calculated or predefined. For a list of possible values, refer to SELECTOR.

PaperType

Value that indicates the type of paper. This value is exported only if the PaperSize member is SEL_PREDEFINED. For a list of possible values, refer to PAPERTYPE.

PaperOrientation

Value that indicates the orientation of the output document. This value is used (i.e. exported) only if the PaperSize member is SEL_PREDEFINED.

Language

Value that indicates whether the resulting language is exported, and if so, is the language calculated or predefined. For a list of possible values, refer to SELECTOR.

ResLang

Value that represents the output language. This value is used (i.e. exported) only if the Language member is SEL_PREDEFINED. For a list of possible values, refer to LANGUAGE_RESULT.

Color

Value that indicates how to output the graphics. For a list of possible values, refer to COLOR_RESULT.

bEnableTextInBoxes

Flag that indicates whether the content of zones will be kept in frames in the final output document. Possible values are:

 

Value

Meaning

 

TRUE

The content of zones will be kept in frames in the final output document.

 

FALSE

The content of zones will not be kept in frames in the final output document.

Margins

Value that indicates whether the margins will be exported, and if so, whether the margins be calculated or predefined.

rcMargin

Margin setting, measured in Twips. This value is used (i.e. exported) only if the Margins member is SEL_PREDEFINED

bEnablePageBreaks

Value that indicates whether to retain or drop page breaks in the final output document. Possible values are:

 

Value

Meaning

 

TRUE

Keep the page breaks in the output document.

 

FALSE

Drop the page breaks from the output document.

TableMethod

Value that indicates how tables will be output. For a list of possible values, refer to TABLEMETHOD.

Comments

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

This structure is used with the following functions:

L_DocSetRecognitionResultOptions

L_DocGetRecognitionResultOptions

This structure is used with the RESULTOPTIONS structure.