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

Method rotation

src/__init__.py:12857–12863  ·  view source on GitHub ↗

Page rotation.

(self)

Source from the content-addressed store, hash-verified

12855
12856 @property
12857 def rotation(self):
12858 """Page rotation."""
12859 CheckParent(self)
12860 page = _as_pdf_page(self.this, required=0)
12861 if not page.m_internal:
12862 return 0
12863 return JM_page_rotation(page)
12864
12865 @property
12866 def rotation_matrix(self) -> Matrix:

Callers

nothing calls this directly

Calls 3

CheckParentFunction · 0.85
_as_pdf_pageFunction · 0.85
JM_page_rotationFunction · 0.85

Tested by

no test coverage detected