Skip to main content
Create invisible navigation anchors for cross-references and document navigation. Essential for long documents, table of contents, and internal hyperlinks with perfect Word compatibility.

OOXML Structure

Use case

  • Table of Contents - Create clickable TOC entries that jump to chapters
  • Cross-References - Link to figures, tables, or sections elsewhere
  • Navigation - Quick jumps in long documents without scrolling
  • Index Creation - Mark important terms for automated index generation
  • Document Automation - Programmatic navigation and content updates

Commands

insertBookmark

Insert a bookmark at the current cursor position. Bookmarks are invisible navigation anchors used for cross-references and document navigation. Example:
Parameters:
Object
required
Object with name (required bookmark name) and optional id (unique identifier)

goToBookmark

Navigate to a bookmark by name. Scrolls the document to the bookmark position. Example:
Parameters:
string
required
Bookmark name to navigate to

Attributes

BookmarkStart

string
Bookmark name for cross-references and navigation
string
Unique identifier for the bookmark

BookmarkEnd

string
Identifier matching the corresponding bookmarkStart

Source code