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

Method derotation_matrix

src/__init__.py:10964–10971  ·  view source on GitHub ↗

Reflects page de-rotation.

(self)

Source from the content-addressed store, hash-verified

10962
10963 @property
10964 def derotation_matrix(self) -> Matrix:
10965 """Reflects page de-rotation."""
10966 if g_use_extra:
10967 return Matrix(extra.Page_derotate_matrix( self.this))
10968 pdfpage = self._pdf_page(required=False)
10969 if not pdfpage.m_internal:
10970 return Matrix(mupdf.FzRect(mupdf.FzRect.UNIT))
10971 return Matrix(JM_derotate_page_matrix(pdfpage))
10972
10973 def draw_bezier(
10974 page: 'Page',

Callers

nothing calls this directly

Calls 3

_pdf_pageMethod · 0.95
MatrixClass · 0.85
JM_derotate_page_matrixFunction · 0.85

Tested by

no test coverage detected