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

The following table lists all the output formats and shows which format levels are supported by each of them:

Output Format NoFormat RetainFontAndParagraph SpreadSheet TruePage FlowingPage
HTML 3.2 YES YES YES NO NO
HTML 4.0 YES YES NO YES NO
InfoPath NO NO NO YES NO
Microsoft Excel 97, 2000, 2007 YES YES YES NO NO
Microsoft Word 97, 2000, 2007, WordML YES YES NO YES YES
RTF Word 2000 YES YES NO YES YES
RTF for WordPad YES YES NO NO NO
Text YES NO NO NO NO
Text formatted NO NO NO YES NO
Unicode Text YES NO NO NO NO
Unicode Text formatted NO NO NO YES NO

The enumeration is used by:

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

LEADTOOLS OCR Module - OmniPage Engine C API Help