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

Method page_count

src/__init__.py:5946–5955  ·  view source on GitHub ↗

Number of pages.

(self)

Source from the content-addressed store, hash-verified

5944
5945 @property
5946 def page_count(self):
5947 """Number of pages."""
5948 if self.is_closed:
5949 raise ValueError('document closed')
5950 if g_use_extra:
5951 return self.page_count2(self)
5952 if isinstance( self.this, mupdf.FzDocument):
5953 return mupdf.fz_count_pages( self.this)
5954 else:
5955 return mupdf.pdf_count_pages( self.this)
5956
5957 def page_cropbox(self, pno):
5958 """Get CropBox of page number (without loading page)."""

Callers 1

test_3081Function · 0.80

Calls

no outgoing calls

Tested by 1

test_3081Function · 0.64