ihademo

The ihademo sample program is a simple Windows application that demonstrates how to index (filter), highlight, and annotate documents.

NOTE: Note: The ihademo sample program is intended for word processing documents only. You might encounter limitations if you use it with other formats.

To start the ihademo program, double-click the ihademo.exe file, or enter the following command at a DOS prompt or in the Run dialog box:

ihademo optional_word_to_index

To open and view a document, select Open from the File menu. If you specified a word to index at the command line (the optional_word_to_index parameter), all occurrences of the indexed word in the document (index hits) are highlighted when you open a document. To show or hide the index hits, select Show Hits from the View menu.

To index a document without viewing it, select Index Only before you select Open. In "Index Only" mode, the document is not displayed; rather, text buffers are returned. The first text buffer returns automatically. To get more text buffers, select Drive Next Buffer. The baseAddress returned in the text buffer is the starting logical address of the returned text.

To insert an annotation at the cursor position, select Annotate from the View menu. If no text is selected, the Annotate command inserts a bitmap. If any text is selected, the Annotate command turns green and the selected text is underlined. You can also annotate by using a double-click. This method annotates (with a green underline) five characters, starting at the cursor position. If you click the annotation, the annotation text returns in a message box.

To get the current view position (that is, the first and last logical address displayed), select Get View Position from the View menu.

To get the logical address and page number at the cursor position, select Current Page Number from the View menu.

To get the text at the cursor position, select Get Text from the View menu.


_HP_HTML5_bannerTitle.htm