---
title: "bookmark.addFromStructure: New bookmarks from structure — PDF kit command — Kition"
description: "Make bookmarks from the document's tagged headings (H, H1-H6), nested by level under a new first bookmark titled \"Untitled\". Fails if the document has no tagged headings. Returns the first page of the bookmark tree (see bookmark.list). Undoable."
canonical: "https://developer.kition.ai/docs/kits/pdf/commands/bookmark.addFromStructure"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/pdf/commands/bookmark.addFromStructure](https://developer.kition.ai/docs/kits/pdf/commands/bookmark.addFromStructure)

# bookmark.addFromStructure

**New bookmarks from structure.** Make bookmarks from the document's tagged headings (H, H1-H6), nested by level under a new first bookmark titled "Untitled". Fails if the document has no tagged headings. Returns the first page of the bookmark tree (see bookmark.list). Undoable.

- Kit: PDF 0.1.0 (.pdf); reference: [PDF kit commands](https://developer.kition.ai/docs/kits/pdf.md)
- Changes the document: yes

## Parameters

None.

## Call through pdf_run

```text
pdf_run {
  "path": "<file>.pdf",
  "steps": [{ "command": "bookmark.addFromStructure" }]
}
```

The required parameters, with placeholders for their types: not a tested example. pdf_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

Generated from the command list of @kition/pdf-darwin-arm64@0.1.0 and the kit itself (pdf_commands through @kition/cli@0.1.1, built from KitionAI/kition-pdf@b0d2725).
