Using the Character Options
The recognition result options, which include character options, indicate how the recognition results are saved, and exactly what is output. To get the current options used by the OCR engine to save the recognition results, call the GetRecognitionResultOptions method. This method updates the ResultOptions property, which accesses the CharacterOptions property, with the current settings. This property is a pointer to an ILTCharacterOptions object. While the CharacterOptions property is read only, the ILTCharacterOptions properties accessed through it can be set. To set new character options, set the ILTCharacterOptions properties, accessed through the CharacterOptions property of the ResultOptions property (for example RasterDoc.ResultOptions.CharacterOptions.Size = 24) and then set the new options for the OCR engine by calling the SetRecognitionResultOptions method.
Various character characteristics of the OCR document may be exported to the output document following recognition. The SelOutputFont property indicates whether the font names and character sizes are exported to the output document, and if so, whether the character size is predefined or calculated. Depending on the value of this property, the FontNames property may contain the font names to be exported and the Size property may contain the character size to be exported.
During recognition, the OCR engine may encounter characters that are bold, italic or underlined. The Bold, Italic and Underline properties indicate how these characters will be output. The Bold property indicates whether a bold character will be output as bold. If the OCR engine recognizes a bold character, but the Bold property is FALSE, the recognized bold character will be output as a plain character. The Italic property indicates whether an italic character will be output as italic and the Underline property indicates whether underlined characters will be output as underlined.