Web SDKv1.0.0

OutlineApi.get()

The bookmark tree. Without the extract feature every title is '', so a tree read then and given back to set writes them blank: rename with setTitle. Needs no feature.
methodReadingsince 1.0.0

Signature

get(): Promise<OutlineNode[]>

Returns

Promise<OutlineNode[]> Each { title, pageIndex, children }; pageIndex is null when the bookmark has no page (it only groups children).

Throws

  • DOCUMENT_CLOSED — the document has been closed.

Example

TypeScript
const chapters = await doc.outline.get();

More in OutlineApi