Skip to content

Function: getPageRotation() ​

ts
function getPageRotation(page): number;

Defined in: src/helpers/layout/pageRotation.ts:9

Read the /Rotate entry on a PDF page. Returns 0 if missing.

PyMuPDF exposes page.rotation directly; JS mupdf only gives raw access to the page object so we read it ourselves.

Parameters ​

page ​

PDFPage

Returns ​

number

AGPL-3.0-or-later — inherited from PyMuPDF and pymupdf4llm.