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

Method _embfile_del

src/__init__.py:3636–3646  ·  view source on GitHub ↗
(self, idx)

Source from the content-addressed store, hash-verified

3634 return xref
3635
3636 def _embfile_del(self, idx):
3637 pdf = _as_pdf_document(self)
3638 names = mupdf.pdf_dict_getl(
3639 mupdf.pdf_trailer(pdf),
3640 PDF_NAME('Root'),
3641 PDF_NAME('Names'),
3642 PDF_NAME('EmbeddedFiles'),
3643 PDF_NAME('Names'),
3644 )
3645 mupdf.pdf_array_delete(names, idx + 1)
3646 mupdf.pdf_array_delete(names, idx)
3647
3648 def _embfile_info(self, idx, infodict):
3649 pdf = _as_pdf_document(self)

Callers 1

embfile_delMethod · 0.95

Calls 3

_as_pdf_documentFunction · 0.85
PDF_NAMEFunction · 0.85
pdf_trailerMethod · 0.80

Tested by

no test coverage detected