MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / del_toc_item

Function del_toc_item

src_classic/utils.py:1081–1087  ·  view source on GitHub ↗

Delete TOC / bookmark item by index.

(
    doc: Document,
    idx: int,
)

Source from the content-addressed store, hash-verified

1079
1080
1081def del_toc_item(
1082 doc: Document,
1083 idx: int,
1084) -> None:
1085 """Delete TOC / bookmark item by index."""
1086 xref = doc.get_outline_xrefs()[idx]
1087 doc._remove_toc_item(xref)
1088
1089
1090def set_toc_item(

Callers

nothing calls this directly

Calls 2

get_outline_xrefsMethod · 0.80
_remove_toc_itemMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…