Example: add method

This example adds a bookmark at the beginning of the first paragraph.

  Bookmark bookmark = bookmarks.add("FirstBookmark", document.getParagraphs().item(1).getRange().getStart());

Related information

add method