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

Method embfile_get

src/__init__.py:4481–4490  ·  view source on GitHub ↗

Get the content of an item in the EmbeddedFiles array. Args: item: number or name of item. Returns: (bytes) The file content.

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

Source from the content-addressed store, hash-verified

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.
4483
4484 Args:
4485 item: number or name of item.
4486 Returns:
4487 (bytes) The file content.
4488 """
4489 idx = self._embeddedFileIndex(item)
4490 return self._embeddedFileGet(idx)
4491
4492 def embfile_info(self, item: typing.Union[int, str]) -> dict:
4493 """Get information of an item in the EmbeddedFiles array.

Callers 5

embedded_copyFunction · 0.80
embedded_getFunction · 0.80
embedded_copyFunction · 0.80
embedded_getFunction · 0.80
test_embedded1Function · 0.80

Calls 2

_embeddedFileIndexMethod · 0.95
_embeddedFileGetMethod · 0.95

Tested by 1

test_embedded1Function · 0.64