Skip to content

Function: setPageRotation() ​

ts
function setPageRotation(
   doc, 
   page, 
   degrees): void;

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

Set (or clear) the /Rotate entry on a PDF page. Pass 0 to remove rotation.

Mirrors page.set_rotation / page.remove_rotation from PyMuPDF.

Parameters ​

doc ​

PDFDocument

page ​

PDFPage

degrees ​

number

Returns ​

void

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