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

Method xref_is_stream

src/__init__.py:7998–8003  ·  view source on GitHub ↗

Check if xref is a stream object.

(self, xref=0)

Source from the content-addressed store, hash-verified

7996 return False
7997
7998 def xref_is_stream(self, xref=0):
7999 """Check if xref is a stream object."""
8000 pdf = _as_pdf_document(self, required=0)
8001 if not pdf.m_internal:
8002 return False # not a PDF
8003 return bool(mupdf.pdf_obj_num_is_stream(pdf, xref))
8004
8005 def xref_is_xobject(self, xref):
8006 """Check if xref is a form xobject."""

Callers 5

print_xrefFunction · 0.80
xref_copyMethod · 0.80
set_contentsMethod · 0.80
print_xrefFunction · 0.80
xref_copyFunction · 0.80

Calls 1

_as_pdf_documentFunction · 0.85

Tested by

no test coverage detected