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

Method _deleteObject

src/__init__.py:3125–3130  ·  view source on GitHub ↗

Delete object.

(self, xref)

Source from the content-addressed store, hash-verified

3123 mupdf.ll_pdf_drop_page_tree( pdf.m_internal)
3124
3125 def _deleteObject(self, xref):
3126 """Delete object."""
3127 pdf = _as_pdf_document(self)
3128 if not _INRANGE(xref, 1, mupdf.pdf_xref_len(pdf)-1):
3129 raise ValueError( MSG_BAD_XREF)
3130 mupdf.pdf_delete_object(pdf, xref)
3131
3132 def _do_links(
3133 doc1: 'Document',

Callers

nothing calls this directly

Calls 2

_as_pdf_documentFunction · 0.85
_INRANGEFunction · 0.85

Tested by

no test coverage detected