This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/web/knowledge-base/how-to-create-bookmarks-from-outline-elements.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. Create PDF bookmarks from outline | Nutrient

One way to create a bookmark from an outline element is to manually “turn” an outline element into a bookmark using our instance.getDocumentOutline() and instance.create API:

const outlineElements = await instance.getDocumentOutline();
const outlines = outlineElements.toJS();
const bookmark = new NutrientViewer.Bookmark({
name: outlines[0].title,
action: new NutrientViewer.Actions.GoToAction(outlines[0].action)
});
instance.create(bookmark);

This has been tested with Nutrient Web SDK 2021.2.0.