Click or drag to resize

Document Class

The Document object represents an IPRO document which encapsulates the data and the parameters required during OCR-related procedures.
Inheritance Hierarchy

Namespace:  Kofax.OmniPageCSDK.IproPlus
Assembly:  Kofax.OmniPageCSDK.IproPlus (in Kofax.OmniPageCSDK.IproPlus.dll) Version: 1.0.0.0
Syntax
public class Document : IproPlusClass, IDisposable

The Document type exposes the following members.

Properties
  NameDescription
Public propertyActive
This method allows you to get or set the active item.
Public propertyAutoZoning_Column
This property is used to modify the behavior of Auto-zoning.
Public propertyAutoZoning_Form
This property is used to modify the behavior of auto-zoning.
Public propertyAutoZoning_Graphics
This property is used to modify the behavior of Auto-zoning.
Public propertyAutoZoning_Table
This property is used to modify the behavior of Auto-zoning.
Public propertyBinarization
Use this property to get or set the secondary image conversion mode for the Document object.
Public propertyBrightness
Use this property to get or set the brightness value for the Document object.
Public propertyBrightnessThreshold
Use this property to get or set the threshold value for an image conversion to a B/W image.
Public propertyCheck
Use this property to enable or disable the recognition checking subsystem at document level.
Public propertyConversion
Use this property to get or set the primary image conversion mode.
Public propertyCorrection
Use this property to enable or disable the document-level correction of the checking subsystem.
Public propertyDecompMethod
Use this property to get or set which page parser algorithm will be used during auto-zoning.
Public propertyDefaultFillingMethod
Use this property to get or set the default filling method for the document.
Public propertyDefaultRecognitionModule
Use this property to get or set the default recognition module used during recognition.
Public propertyDeskew
Use this property to get or set which image deskewing mode will be used during image preprocessing.
Public propertyDespeckleMode
Use this property to get or set the de-speckle mode used during image preprocessing.
Public propertyDownSample
This property switches on or off the resolution reducing mode during image preprocessing.
Public propertyFaxCorrection
Use this property to get or set the fax correction for image preprocessing.
Public propertyFileName
This property returns the full qualified path to the IPRO document file associated with the Document object. If the document has not yet been saved, an empty string is returned.
Public propertyFilter
This property is used to narrow the Language environment (the sum of RecognitionLanguages and LanguagePlus enabled characters). Available values are listed under the CHR_FILTER Enumeration topic.
Public propertyFilterPlus
This property is used to get or set the FilterPlus characters.
Public propertyFindBarZones
Caution note Caution
This API is preliminary and subject to change.
Public propertyHNRBoxHeight
Use this property to get or set the expected character heights in 1/1200th of an inch for the hand printed numerals recognition module (RM_HNR).
Public propertyHNRBoxSpace
Returns or sets the expected leading spaces in 1/1200th of an inch for the hand printed numerals recognition module (RM_HNR).
Public propertyHNRBoxWidth
Returns or sets the expected character widths in 1/1200th of an inch for the hand printed numerals recognition module (RM_HNR).
Public propertyHNRSpaceIncluded
Use this property to get or set whether the hand printed numerals recognition module (RM_HNR) will report detected spaces between characters.
Public propertyHNRStyle
Use this property to get or set the behavior of the hand printed numerals recognition module (RM_HNR).
Public propertyInversion
Use this property to get or set which image inversion mode will be used during image preprocessing steps.
Public propertyKeepOCRImage
This property is used to control whether the OCR image (II_OCR) is to be kept after recognition.
Public propertyKeepOriginalImage
By default, the original (II_ORIGINAL), image for any page in the document is not preserved by the page object.
Public propertyLanguagePlus
This property is used to get or set the LanguagesPlus characters for the Document object.
Public propertyLegalPleading
Use this property to control the Legal Pleading format.
Public propertyLookForHeaderFooter
Use this property if you want to control the handling of header and footer information during output generation.
Public propertyLookForHyperlinks
Use this property if you want to control searching for hyperlinks during recognition.
Public propertyMissingSymbol
Use this property to get or set the value of the "missing" symbol.
Public propertyModified
This property returns True if a document setting or page data has been modified by any method calls or by setting a property value since the Document object was last saved.
Public propertyMORFax
This property is used to switch on or off the fax handling feature of the MOR multi-lingual recognition module.
Public propertyNongriddedTableDetect
Use this property to get or set non-gridded table detection during auto-zoning.
Public propertyOCRThreadCount
Use this property to get or set the maximum number of OCR threads that can be launched in parallel during a single Recognize call.
Public propertyOMRFill
Use this property to get or set resolution of the optical mark recognition module.
Public propertyOMRFrame
Use this property to get or set the frame detection method used during OMR optical mark recognition.
Public propertyOMRSensitivity
Use this property to get or set the mark sensitivity level used during the OMR optical mark recognition.
Public propertyRejectionSymbol
Use this property to get or set the code used for the rejection symbol.
Public propertyResEnhancement
Use this property to get or set the resolution enhancement mode.
Public propertyRetainColors
Use this property to get or set retain color behavior in recognition.
Public propertyRotation
Use this property to get or set the image rotation mode during image preprocessing.
Public propertySingleLanguageDetection
Use this property to check the used language.
Public propertySlope
Use this property to get or set the skew (slope value).
Public propertySpellLanguage
Use this property to get or set the spelling language for document level spell checking.
Public propertyTitle
Use this method to get or set the title of the object.
Public propertyTradeOff
Use this property to get or set which recognition trade-off setting will be used during the recognition of the document.
Public propertyUILang
Use this method to get or set the current user interface language ID.
Public propertyUniqueID
Use this property to get the unique ID of an item.
Public propertyWindowHandle
This property is used to get or set the handle to the Document object's parent window.
Public propertyWorkingFileName
Use this method to get the working file name.
Public propertyZoningFlags
Use this method to get or set zoning flags for the object.
Top
Methods
  NameDescription
Public methodApplyFormTemplate
This method applies a form processing template file to a filled-in form image, when performing Form Data Extraction (FDE).
Public methodApplyPreprocessTemplate
This method performs template-based preprocessing on one or more document pages.
Public methodApplyZoneTemplate
This method can be used to apply a saved zone template to one or more pages in the document.
Public methodCDCount
This method returns the number of custom data streams of the specified type stored in the document.
Public methodCDExport
This method saves an existing piece of custom data stored in the document to an external file specified by the FileName parameter.
Public methodCDGetData
This method retrieves custom data stored in the document.
Public methodCDImport
This method imports custom (also referred as client) data from an external file into the document.
Public methodCDName
This method returns the name of the requested custom data stream of the requested type.
Public methodCDNameEx
This method returns the name of the requested custom data stream of the requested type.
Public methodCDRemove
This method deletes a custom data stream from the document.
Public methodCDSetData
This method creates or modifies binary or string custom data streams stored in the document.
Public methodCleanBuffers
Caution note Caution
This API is preliminary and subject to change.
Public methodClearModified
This method sets the Modified property to False.
Public methodClose
The method is used to Close the document and remove it from the Documents collection.
Public methodConvertResults
This method creates the final output document from the recognition results using the specified converter.
Public methodDispose
Releases all resources used by the Document
Public methodEnableUIMode
This method sets the UI mode.
Public methodEquals (Overrides ObjectEquals(Object).)
Public methodExecuteWorkflow
This method executes an OmniPage 15 or 16 compatible workflow.
Public methodGetActivePage
This property returns a reference to the active page of the document, which is always loaded into memory.
Public methodGetBarcodeTypes
This property returns the BarcodeTypes collection object which allows you to individually enable or disable the recognition of particular bar code types.
Public methodGetDocumentProperty
This method sets or returns the property of the document.
Public methodGetDropoutColorWeights
This method retrieves the current value of the drop-out color weights.
Public methodGetEngine
Returns the Engine object.
Public methodGetFindText
Page is a valid zero-based page index or FINDTEXT_FIRST for the first page or FINDTEXT_LAST for the last page.
Public methodGetHashCode (Overrides ObjectGetHashCode.)
Public methodGetPages
This property returns the Pages collection, containing the document Page objects.
Public methodGetPreprocessTemplate
This method returns the name of the selected preprocess template.
Public methodGetRecognitionLanguages
This property returns the collection of available recognition languages that can be switched on/off independently.
Public methodGetSettingManager
This property returns the SettingManager object, which allows you to manage your application-specific settings together with the Engine settings in a thread-safe manner.
Public methodGetStatistics
This property returns the Statistics object of the document.
Public methodGetThumbnailImgInfo
This method retrieves the thumbnail information currently being used when the engine generates thumbnail images (II_THUMBNAIL image of the Image object).
Public methodGetTrainingData
This method returns the name of the currently selected training data.
Public methodGetUserDictionary
This method returns the name and section information for the currently selected user dictionary.
Public methodGetVerticalDictionaries
This property returns the collection of available vertical (professional) dictionaries.
Public methodGetWFHandler
This property returns the workflow handler interface.
Public methodGetZoneTemplate
This method returns the name of the selected zone template.
Public methodImagePreprocess
This method performs image preprocessing according to the current document settings.
Public methodLoadBitmap
This method returns a reference to the created Page.
Public methodLoadImage
If a single page was loaded, this method returns a reference to the loaded Page object.
Public methodLoadSettings
This method loads a previously saved document setting file and applies all the loaded settings to the document.
Public methodLocateZones
This method automatically locates all OCR zones on the related pages and builds the OCRZone collection using auto-zoning.
Public methodOpen
This method can be used to open an existing IPRO document file.
Public methodProcessPages
This method processes one or more input image files and creates the output document file(s) in a single step.
Public methodRecognize
This method recognizes one or more document pages.
Public methodSave
This method is used to save the document to an IPRO document file.
Public methodSaveImages
This method saves one more pages of the document into external image file(s).
Public methodSaveSettings
This method saves the current document settings into a setting file specified by the SettingFile parameter. If SettingFile already exists, it is overwritten.
Public methodScanImage
If a single page was scanned, this method returns a reference to the scanned Page object.
Public methodSetDefaults
This method resets all document level settings to their original, default values.
Public methodSetDocumentProperty
This method sets or returns the property of the document.
Public methodSetDropoutColorWeights
This method sets the weights used to calculate the gray-level intensity values from the color components during binarization. By default the value of these weights are (77, 150, 29).
Public methodSetPreprocessTemplate
The method selects a preprocess template for the Document object.
Public methodSetThumbnailImgInfo
This method sets the thumbnail information which is used when the engine generates thumbnail images (II_THUMBNAIL image of the Image object).
Public methodSetTrainingData
This method selects training data to be used during recognition.
Public methodSetUserDictionary
This method selects a user dictionary for the document to use during recognition.
Public methodSetZoneTemplate
This method selects a zone template for the Document object.
Top
Events
  NameDescription
Public eventOnCanContinue
This event is fired when any type of processing has finished with a page and there are more pages available.
Public eventOnCheck
This event is used to allow user-written checking of recognition results.
Public eventOnDocumentClosed
This event is fired if the document is closed.
Public eventOnDocumentLoaded
This event is fired if a document is loaded.
Public eventOnDocumentSaved
This event is fired if the document is saved.
Public eventOnStatisticsChanged
This event is fired whenever any modifications are done to the document.
Public eventOnThumbnailsChanged
This event is fired when the thumbnail view is changed.
Public eventOnTitleChanged
This event is fired when the document title is changed.
Public eventOnZoningSettingsChanged
This event is fired when the OCR zone settings of the document are changed.
Top
Remarks

To create a new document, invoke the Documents collection's Add method. To open an existing document, invoke the Open method. To save a document for later reference, invoke the Save method. The Document object has numerous properties and settings. You can save or load all settings with the SaveSettings and LoadSettings methods. The Save method also saves all document-level settings to the document file automatically.

See Also