def embeddedFileGet(self, id):
        """Retrieve embedded file content by name or by number."""
        if self.isClosed or self.isEncrypted:
            raise ValueError("operation illegal for closed / encrypted doc")

        return _fitz.Document_embeddedFileGet(self, id)
Retrieve embedded file content by name or by number.