DOC2_FORMATLEVEL

typedef enum
{
   DOC2_FORMAT_LEVEL_AUTO = 0,
   DOC2_FORMAT_LEVEL_NONE,
   DOC2_FORMAT_LEVEL_RFP,
   DOC2_FORMAT_LEVEL_TRUEPAGE,
   DOC2_FORMAT_LEVEL_FLOWINGPAGE,
   DOC2_FORMAT_LEVEL_SPREADSHEET,
} DOC2_FORMATLEVEL;

The DOC2_FORMATLEVEL enumerated type specifies how much formatting is exported.

Value

Meaning

DOC2_FORMAT_LEVEL_AUTO

Default format conversion

DOC2_FORMAT_LEVEL_NONE

No format conversion
All formatting information is ignored and replaced by a default value. (One column, left aligned paragraphs, no font attributes, a default font, etc.)

DOC2_FORMAT_LEVEL_RFP

Retain Font and Paragraphs
The formatting information on fonts and paragraphs is retained, but the layout related information is ignored. (This level has a special purpose when saving to Excel: each detected table or spreadsheet in a document is saved to a separate worksheet. Other content is placed on the last worksheet and functions as an index. The tables are replaced by hyperlinks to their own sheet.)

DOC2_FORMAT_LEVEL_TRUEPAGE

True page
This keeps the look of the original layout of the pages. This is done by absolute positioning of the texts, pictures and tables on the page with boxes, frames or other target application specific methods. This level is only available for target applications capable of handling these.

DOC2_FORMAT_LEVEL_FLOWINGPAGE

Flowing page
Preserves the original layout of the pages, including retaining columns. Boxes and frames are only used when necessary. This level is only available with target applications that can handle columns.

DOC2_FORMAT_LEVEL_SPREADSHEET

Spreadsheet
This level exports the results in tabular form, suitable for use in spreadsheet applications. Each page is placed in a separate worksheet.

Comments

This enumerated type is used by the following structure:

RESULTOPTIONS2