Delete TOC / bookmark item by index.
(
doc: Document,
idx: int,
)
| 1079 | |
| 1080 | |
| 1081 | def 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 | |
| 1090 | def set_toc_item( |
nothing calls this directly
no test coverage detected
searching dependent graphs…