MCPcopy Index your code
hub / github.com/pymupdf/PyMuPDF / xref_length

Method xref_length

src/__init__.py:8013–8019  ·  view source on GitHub ↗

Get length of xref table.

(self)

Source from the content-addressed store, hash-verified

8011 return False
8012
8013 def xref_length(self):
8014 """Get length of xref table."""
8015 xreflen = 0
8016 pdf = _as_pdf_document(self, required=0)
8017 if pdf.m_internal:
8018 xreflen = mupdf.pdf_xref_len(pdf)
8019 return xreflen
8020
8021 def xref_object(self, xref, compressed=0, ascii=0):
8022 """Get xref object source as a string."""

Callers 14

showFunction · 0.80
get_ocmdMethod · 0.80
scrubMethod · 0.80
set_contentsMethod · 0.80
showFunction · 0.80
scrubFunction · 0.80
get_ocmdFunction · 0.80
test_objectstream1Function · 0.80
test_objectstream2Function · 0.80
test_objectstream3Function · 0.80
test_trailerFunction · 0.80
test_extract_imageFunction · 0.80

Calls 1

_as_pdf_documentFunction · 0.85

Tested by 7

test_objectstream1Function · 0.64
test_objectstream2Function · 0.64
test_objectstream3Function · 0.64
test_trailerFunction · 0.64
test_extract_imageFunction · 0.64
test_subset_fontsFunction · 0.64
test_4702Function · 0.64