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

Method read_contents

src/__init__.py:12806–12808  ·  view source on GitHub ↗

All /Contents streams concatenated to one bytes object.

(self)

Source from the content-addressed store, hash-verified

12804 # return Document( self.this.document())
12805
12806 def read_contents(self):
12807 """All /Contents streams concatenated to one bytes object."""
12808 return TOOLS._get_all_contents(self)
12809
12810 def refresh(self):
12811 """Refresh page after link/annot/widget updates."""

Callers 3

test_wrapcontentsFunction · 0.80
test_page_clean_contentsFunction · 0.80
test_scientific_numbersFunction · 0.80

Calls 1

_get_all_contentsMethod · 0.80

Tested by 3

test_wrapcontentsFunction · 0.64
test_page_clean_contentsFunction · 0.64
test_scientific_numbersFunction · 0.64