MCPcopy Index your code
hub / github.com/pymupdf/PyMuPDF / del_toc_item

Method del_toc_item

src/__init__.py:3079–3085  ·  view source on GitHub ↗

Delete TOC / bookmark item by index.

(
            self,
            idx: int,
            )

Source from the content-addressed store, hash-verified

3077 mupdf.pdf_dict_put( fonts, k, v)
3078
3079 def del_toc_item(
3080 self,
3081 idx: int,
3082 ) -> None:
3083 """Delete TOC / bookmark item by index."""
3084 xref = self.get_outline_xrefs()[idx]
3085 self._remove_toc_item(xref)
3086
3087 def _delToC(self):
3088 """Delete the TOC."""

Callers 2

set_toc_itemMethod · 0.80
set_toc_itemFunction · 0.80

Calls 2

get_outline_xrefsMethod · 0.95
_remove_toc_itemMethod · 0.95

Tested by

no test coverage detected