File Content Extraction 26.1
Viewing SDK Programming Guide

# Annotate, Highlight, or Index a Document

- Use the VAPIM_ENABLEINDEX message to enable index-only mode. This generates text buffer (`VAPINM_TEXTBUFFER`) notification messages with document viewing disabled.

- To specify the character set for the returned text buffer, use VAPIM_SETINDEXBUFCHARSET.

- To add and delete annotations, use the VAPIM_ANNOTATE message. The annotation is placed at a logical address.

- To add a highlight to a document, use the ``VAPIM_SETHILITE message.

- See the following messages and notification messages for more functionality related to annotating, highlighting, or indexing documents:

  - VAPIM_GETNEXTTEXTBUFFER

  - VAPIM_GETPAGEFROMLOGICAL

  - VAPIM_GETTEXT

  - VAPIM_GOTO_PAGE

  - VAPIM_POSITION

  - VAPIM_SETCURSOR

  - VAPIM_SHOWHITS

  - VAPINM_ANNOTATION_HIT

  - VAPINM_EXTENT

  - VAPINM_SELECTION

  - VAPINM_USERCLICK

  - The VAPIMWP_PRINT_ANNOTATIONS parameter of `VAPIM_PRINT`

Copyright 2016-2025 Open Text
Version 26.1 | Last updated January 2026

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: File Content Extraction 26.1

Topic Title: Annotate, Highlight, or Index a Document