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

Method embfile_del

src/__init__.py:4466–4479  ·  view source on GitHub ↗

Delete an entry from EmbeddedFiles. Notes: The argument must be name or index of an EmbeddedFiles item. Physical deletion of data will happen on save to a new file with appropriate garbage option. Args: item: name or number of item.

(self, item: typing.Union[int, str])

Source from the content-addressed store, hash-verified

4464 return len(self.embfile_names())
4465
4466 def embfile_del(self, item: typing.Union[int, str]):
4467 """Delete an entry from EmbeddedFiles.
4468
4469 Notes:
4470 The argument must be name or index of an EmbeddedFiles item.
4471 Physical deletion of data will happen on save to a new
4472 file with appropriate garbage option.
4473 Args:
4474 item: name or number of item.
4475 Returns:
4476 None
4477 """
4478 idx = self._embeddedFileIndex(item)
4479 return self._embfile_del(idx)
4480
4481 def embfile_get(self, item: typing.Union[int, str]) -> bytes:
4482 """Get the content of an item in the EmbeddedFiles array.

Callers 7

embedded_delFunction · 0.80
embedded_addFunction · 0.80
scrubMethod · 0.80
embedded_delFunction · 0.80
embedded_addFunction · 0.80
scrubFunction · 0.80
test_embedded1Function · 0.80

Calls 2

_embeddedFileIndexMethod · 0.95
_embfile_delMethod · 0.95

Tested by 1

test_embedded1Function · 0.64